Mercurial > hg > aboriginal
diff sources/sections/toybox.build @ 1812:acaa88463c0c draft
Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 12 Nov 2015 07:55:05 -0600 |
parents | cb28b1d437b2 |
children |
line wrap: on
line diff
--- a/sources/sections/toybox.build Thu Nov 12 07:54:10 2015 -0600 +++ b/sources/sections/toybox.build Thu Nov 12 07:55:05 2015 -0600 @@ -1,6 +1,8 @@ # Build toybox statically by default, but don't statically link against # glibc (during host-tools.sh build) because glibc is buggy and can't combine -# --static with --gc-sections. See http://blah for details +# --static with --gc-sections. See +# http://elinux.org/images/2/2d/ELC2010-gc-sections_Denys_Vlasenko.pdf +# for details # Build toybox @@ -8,7 +10,7 @@ $( [ -z "$BUSYBOX" ] && echo install$([ -z "$ARCH" ] && echo _flat) ) do PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \ - CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $VERBOSITY $i || dienow + make -j $CPUS $VERBOSITY $DO_CROSS $i || dienow done cp .config "$WORK"/config-toybox || dienow