File ladspa-pie.patch of Package ladspa

From: Dave Plater - davejplater@gmail.co.za
Date: 2017-11-04 10:48:22 +0200
Subject: Build position independent executables
References:
Upstream: email

Build position independent executables.
Index: src/makefile
===================================================================
--- src/makefile.orig	2017-11-04 10:51:34.635255160 +0200
+++ src/makefile	2017-11-04 11:08:08.154323693 +0200
@@ -14,14 +14,14 @@ INSTALL_BINARY_DIR	=	/usr/bin/
 #
 
 INCLUDES	=	-I.
-LIBRARIES	=	-ldl -lm
+LIBRARIES	=	-fPIE -pie -ldl -lm
 CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
 CXXFLAGS	=	$(CFLAGS)
 PLUGINS		=	../plugins/amp.so				\
 			../plugins/delay.so				\
 			../plugins/filter.so				\
 			../plugins/noise.so				\
-			../plugins/sine.so				
+			../plugins/sine.so
 PROGRAMS	=	../bin/analyseplugin				\
 			../bin/applyplugin 				\
 			../bin/listplugins
@@ -112,7 +112,7 @@ targets:	$(PLUGINS) $(PROGRAMS)
 # UTILITIES
 #
 
-always:	
+always:
 
 clean:
 	-rm -f `find . -name "*.o"` ../bin/* ../plugins/*
openSUSE Build Service is sponsored by