zynaddsubfx: fix PIE

This commit is contained in:
Juergen Buchmueller 2016-10-14 17:03:34 +02:00
parent ce332aa512
commit 4b6ca5abde

View file

@ -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