mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
Do not statically link binaries by default in sys/static.sh ##build
* Use STATIC_BINS=1 env var to change this behaviour
This commit is contained in:
parent
83873cd0f2
commit
fc68124f4d
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -z "${STATIC_BINS}" ] && STATIC_BINS=0
|
||||
|
||||
case "$(uname)" in
|
||||
Linux)
|
||||
LDFLAGS="${LDFLAGS} -lpthread -ldl -lutil -lm"
|
||||
@ -48,7 +50,11 @@ for a in ${BINS} ; do
|
||||
if [ "`uname`" = Darwin ]; then
|
||||
${MAKE} -j4 || exit 1
|
||||
else
|
||||
CFLAGS=-static LDFLAGS=-static ${MAKE} -j4 || exit 1
|
||||
if [ "${STATIC_BINS}" = 1 ]; then
|
||||
CFLAGS=-static LDFLAGS=-static ${MAKE} -j4 || exit 1
|
||||
else
|
||||
${MAKE} -j4 || exit 1
|
||||
fi
|
||||
fi
|
||||
)
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user