From 4b6ca5abdee0fe5512436b4885f76096643715ac Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Fri, 14 Oct 2016 17:03:34 +0200 Subject: [PATCH] zynaddsubfx: fix PIE --- srcpkgs/zynaddsubfx/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/zynaddsubfx/template b/srcpkgs/zynaddsubfx/template index 3d24ac9e182..87454c4c8c4 100644 --- a/srcpkgs/zynaddsubfx/template +++ b/srcpkgs/zynaddsubfx/template @@ -31,8 +31,10 @@ post_build() { local ext for ext in Spliter Controller; do cd ${wrksrc}/ExternalPrograms/${ext} - # Replace gcc with the target C compiler - sed -i Makefile -e "s;gcc;${CC};g" + sed -i Makefile \ + -e 's;`fltk-config --cflags`;& ${CFLAGS};' \ + -e 's;`fltk-config --ldflags`;& ${LDFLAGS};' \ + -e 's;gcc ;${CC} ;' # Build external program make ${makejobs} done