aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-04-02 19:29:00 -0500
committerRob Landley <rob@landley.net>2018-04-02 19:29:00 -0500
commitc244273ffb1768537eddce494e19a4c5ad435c39 (patch)
tree329f1cddfc0bb86bb387c0100de08be286b68833 /scripts
parent58aed2b87d1287bfa37b35d6a3692bcb6484d4b2 (diff)
downloadtoybox-c244273ffb1768537eddce494e19a4c5ad435c39.tar.gz
Library probes need $LDFLAGS (for --static)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 77e0e060..993bcd33 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -111,7 +111,7 @@ then
for i in util crypt m resolv selinux smack attr rt crypto z log
do
echo "int main(int argc, char *argv[]) {return 0;}" | \
- ${CROSS_COMPILE}${CC} $CFLAGS -xc - -o generated/libprobe -Wl,--as-needed -l$i > /dev/null 2>/dev/null &&
+ ${CROSS_COMPILE}${CC} $CFLAGS $LDFLAGS -xc - -o generated/libprobe -Wl,--as-needed -l$i > /dev/null 2>/dev/null &&
echo -l$i >> generated/optlibs.dat
echo -n .
done