Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.
authorRob Landley <rob@landley.net>
Fri, 7 Aug 2009 01:38:24 +0000 (20:38 -0500)
committerRob Landley <rob@landley.net>
Fri, 7 Aug 2009 01:38:24 +0000 (20:38 -0500)
configure

index c9990f2..9b7bb36 100644 (file)
--- 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