Honor CFLAGS and LDFLAGS in static build script (#9660)

The CFLAGS and LDFLAGS were being overwritten and didn't allow
modification of such variables for adding other compiling and
linking options (e.g. compile with address sanitizer + coverage)
This commit is contained in:
zlowram 2018-03-11 23:35:40 +01:00 committed by radare
parent 13c02fdcea
commit 0716a903cc

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ "$(uname)" = Linux ]; then
LDFLAGS="-lpthread -ldl -lutil -lm"
LDFLAGS="${LDFLAGS} -lpthread -ldl -lutil -lm"
fi
MAKE=make
gmake --help >/dev/null 2>&1
@ -33,7 +33,7 @@ if [ 1 = "${DOCFG}" ]; then
if [ -f config-user.mk ]; then
${MAKE} mrproper > /dev/null 2>&1
fi
export CFLAGS="-fPIC"
export CFLAGS="${CFLAGS} -fPIC"
cp -f plugins.static.cfg plugins.cfg
#-D__ANDROID__=1"
./configure-plugins || exit 1