ladspa-sdk: fix PIE.

This commit is contained in:
Christian Neukirchen 2016-05-26 18:29:32 +02:00
parent 323678daa6
commit 52afd4fff0
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,32 @@
--- 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)
###############################################################################
#

View File

@ -1,7 +1,7 @@
# Template file for 'ladspa-sdk'
pkgname=ladspa-sdk
version=1.13
revision=7
revision=8
noarch=yes
wrksrc=ladspa_sdk
makedepends="libsndfile-progs"