changeset 358:51722949f2cc

Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.
author Rob Landley <rob@landley.net>
date Thu, 06 Aug 2009 20:38:24 -0500
parents 0e7bdfafd758
children 86a4054307ab
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jun 05 15:58:48 2009 -0500
+++ b/configure	Thu Aug 06 20:38:24 2009 -0500
@@ -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