comparison scripts/make.sh @ 364:6df3ac5165fa

The "strip" in gcc 4.4 doesn't set the executable bit on its output, despite what SUSv4 says it should do, so cope with buggy FSF tools.
author Rob Landley <rob@landley.net>
date Sun, 13 Dec 2009 00:12:26 -0600
parents 52e980b216d3
children f59b4b6bde5e
comparison
equal deleted inserted replaced
363:2428870ce50c 364:6df3ac5165fa
97 echo "Compile toybox..." 97 echo "Compile toybox..."
98 98
99 $DEBUG $CC $CFLAGS -I . -o toybox_unstripped $OPTIMIZE main.c lib/*.c \ 99 $DEBUG $CC $CFLAGS -I . -o toybox_unstripped $OPTIMIZE main.c lib/*.c \
100 $TOYFILES -Wl,--as-needed,-lutil,--no-as-needed || exit 1 100 $TOYFILES -Wl,--as-needed,-lutil,--no-as-needed || exit 1
101 $DEBUG $STRIP toybox_unstripped -o toybox || exit 1 101 $DEBUG $STRIP toybox_unstripped -o toybox || exit 1
102 # gcc 4.4's strip command is buggy, and doesn't set the executable bit on
103 # its output the way SUSv4 suggests it do so.
104 $DEBUG chmod +x toybox || exit 1