diff options
author | Rob Landley <rob@landley.net> | 2009-08-06 20:38:24 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2009-08-06 20:38:24 -0500 |
commit | a97792d7d0d6dd518023fe31421fae51532b7f59 (patch) | |
tree | dc491c98ed12c3f1983f93b97eedcebadee7dc5a /configure | |
parent | 5bd73a9e814842d11a7f7dc51b50763091046510 (diff) | |
download | toybox-a97792d7d0d6dd518023fe31421fae51532b7f59.tar.gz |
Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.
Diffstat (limited to 'configure')
-rw-r--r-- | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ [ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts" CFLAGS="$CFLAGS -funsigned-char" [ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -Wl,--gc-sections" -[ -z "$CC" ] && CC="${CROSS_COMPILE}gcc" +[ -z "$CC" ] && CC="cc" +CC="${CROSS_COMPILE}${CC}" [ -z "$STRIP" ] && STRIP="${CROSS_COMPILE}strip" [ -z "$HOSTCC" ] && HOSTCC=gcc |