void-packages/srcpkgs/ladspa-sdk/patches/fix-pie.patch
Christian Neukirchen 52afd4fff0 ladspa-sdk: fix PIE.
2016-05-26 18:29:32 +02:00

32 lines
972 B
Diff

--- src/makefile.orig
+++ src/makefile
@@ -15,7 +15,7 @@
INCLUDES = -I.
LIBRARIES = -ldl -lm
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
+CFLAGS += $(INCLUDES) -Wall -Werror -O3 -fPIC
CXXFLAGS = $(CFLAGS)
PLUGINS = ../plugins/amp.so \
../plugins/delay.so \
@@ -83,17 +83,17 @@
../bin/applyplugin: applyplugin.o load.o default.o
$(CC) $(CFLAGS) $(LIBRARIES) \
-o ../bin/applyplugin \
- applyplugin.o load.o default.o
+ applyplugin.o load.o default.o $(LDFLAGS)
../bin/analyseplugin: analyseplugin.o load.o default.o
$(CC) $(CFLAGS) $(LIBRARIES) \
-o ../bin/analyseplugin \
- analyseplugin.o load.o default.o
+ analyseplugin.o load.o default.o $(LDFLAGS)
../bin/listplugins: listplugins.o search.o
$(CC) $(CFLAGS) $(LIBRARIES) \
-o ../bin/listplugins \
- listplugins.o search.o
+ listplugins.o search.o $(LDFLAGS)
###############################################################################
#