mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-26 09:06:02 +00:00
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:
parent
13c02fdcea
commit
0716a903cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user