From: Rob Landley Date: Fri, 7 Aug 2009 01:38:24 +0000 (-0500) Subject: Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set. X-Git-Tag: 0.2.0~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a97792d7d0d6dd518023fe31421fae51532b7f59;p=platform%2Fupstream%2Ftoybox.git Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set. --- diff --git a/configure b/configure index c9990f2..9b7bb36 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