diff options
author | Rob Landley <rob@landley.net> | 2015-09-23 22:10:23 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-23 22:10:23 -0500 |
commit | 712e163bb0956b94c27051d0175e719b92f453ad (patch) | |
tree | 87f90e1846d5e9734a4a2ca560a0a2a21f45ab77 /scripts | |
parent | 35c92f1e396d86f04616cd01ef3f045bc2dfb98e (diff) | |
download | toybox-712e163bb0956b94c27051d0175e719b92f453ad.tar.gz |
The -o /dev/null trick in probing isn't compatible with elf2flt, so use tempfile.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh index f6e0c6d5..a81f728f 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -96,10 +96,11 @@ then for i in util crypt m resolv selinux smack attr do echo "int main(int argc, char *argv[]) {return 0;}" | \ - ${CROSS_COMPILE}${CC} $CFLAGS -xc - -o /dev/null -Wl,--as-needed -l$i > /dev/null 2>/dev/null && + ${CROSS_COMPILE}${CC} $CFLAGS -xc - -o generated/libprobe -Wl,--as-needed -l$i > /dev/null 2>/dev/null && echo -l$i >> generated/optlibs.dat echo -n . done + rm -f generated/libprobe echo fi |