diff options
author | Rob Landley <rob@landley.net> | 2018-04-02 19:29:00 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-04-02 19:29:00 -0500 |
commit | c244273ffb1768537eddce494e19a4c5ad435c39 (patch) | |
tree | 329f1cddfc0bb86bb387c0100de08be286b68833 | |
parent | 58aed2b87d1287bfa37b35d6a3692bcb6484d4b2 (diff) | |
download | toybox-c244273ffb1768537eddce494e19a4c5ad435c39.tar.gz |
Library probes need $LDFLAGS (for --static)
-rwxr-xr-x | scripts/make.sh | 2 |
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 |