From 52afd4fff0d7269e42ffa3577de8bd2b2b1a3472 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 26 May 2016 18:29:32 +0200 Subject: [PATCH] ladspa-sdk: fix PIE. --- srcpkgs/ladspa-sdk/patches/fix-pie.patch | 32 ++++++++++++++++++++++++ srcpkgs/ladspa-sdk/template | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ladspa-sdk/patches/fix-pie.patch diff --git a/srcpkgs/ladspa-sdk/patches/fix-pie.patch b/srcpkgs/ladspa-sdk/patches/fix-pie.patch new file mode 100644 index 00000000000..7d2665cb9d2 --- /dev/null +++ b/srcpkgs/ladspa-sdk/patches/fix-pie.patch @@ -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) + + ############################################################################### + # diff --git a/srcpkgs/ladspa-sdk/template b/srcpkgs/ladspa-sdk/template index 0438f1ed443..306e353ecb5 100644 --- a/srcpkgs/ladspa-sdk/template +++ b/srcpkgs/ladspa-sdk/template @@ -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"