SHA256
1
0
forked from pool/ladspa
ladspa/ladspa-pie.patch
Dave Plater 5ec46e206a Accepting request 538910 from home:plater
Add ladspa-find-plugin-path.patch to enable listplugins to find plugins without LADSPA_PATH variable set.
Add ladspa-pie.patch to enable position independent executables.

OBS-URL: https://build.opensuse.org/request/show/538910
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ladspa?expand=0&rev=37
2017-11-04 09:20:53 +00:00

38 lines
1002 B
Diff

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/*