From 712e163bb0956b94c27051d0175e719b92f453ad Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 23 Sep 2015 22:10:23 -0500 Subject: The -o /dev/null trick in probing isn't compatible with elf2flt, so use tempfile. --- scripts/make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3