diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 1 | ||||
-rwxr-xr-x | scripts/make.sh | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -7,7 +7,7 @@ HOSTCC?=cc -export CROSS_COMPILE CFLAGS OPTIMIZE LDOPTIMIZE CC HOSTCC V +export CROSS_COMPILE CFLAGS OPTIMIZE LDOPTIMIZE CC HOSTCC V STRIP all: toybox @@ -28,6 +28,7 @@ CFLAGS="$CFLAGS -funsigned-char" # you call scripts/make.sh and friends directly. [ -z "$CC" ] && CC=cc +[ -z "$STRIP" ] & STRIP=strip # If HOSTCC needs CFLAGS or LDFLAGS, just add them to the variable # ala HOSTCC="blah-cc --static" diff --git a/scripts/make.sh b/scripts/make.sh index 1119ed9d..72d53709 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -368,7 +368,7 @@ done do_loudly $BUILD $LNKFILES $LINK || exit 1 if [ ! -z "$NOSTRIP" ] || - ! do_loudly ${CROSS_COMPILE}strip "$UNSTRIPPED" -o "$OUTNAME" + ! do_loudly ${CROSS_COMPILE}${STRIP} "$UNSTRIPPED" -o "$OUTNAME" then echo "strip failed, using unstripped" && cp "$UNSTRIPPED" "$OUTNAME" || exit 1 |