aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2009-08-06 20:38:24 -0500
committerRob Landley <rob@landley.net>2009-08-06 20:38:24 -0500
commita97792d7d0d6dd518023fe31421fae51532b7f59 (patch)
treedc491c98ed12c3f1983f93b97eedcebadee7dc5a /configure
parent5bd73a9e814842d11a7f7dc51b50763091046510 (diff)
downloadtoybox-a97792d7d0d6dd518023fe31421fae51532b7f59.tar.gz
Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.
Diffstat (limited to 'configure')
-rw-r--r--configure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index c9990f27..9b7bb365 100644
--- a/configure
+++ b/configure
@@ -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