changeset 739:104e8a35ea2e

Move more stuff towards using "cc" instead of "gcc".
author Rob Landley <rob@landley.net>
date Fri, 29 May 2009 14:17:36 -0500
parents db7af4f52222
children 5b063eb13fd0
files sources/include.sh sources/patches/toybox-test.patch
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/include.sh	Fri May 29 14:14:13 2009 -0500
+++ b/sources/include.sh	Fri May 29 14:17:36 2009 -0500
@@ -7,7 +7,7 @@
 
 # What host compiler should we use?
 
-[ -z "$CC" ] && CC=gcc
+[ -z "$CC" ] && export CC=cc
 
 # How many processors should make -j use?
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/toybox-test.patch	Fri May 29 14:17:36 2009 -0500
@@ -0,0 +1,12 @@
+diff -r 5753378eddfd configure
+--- a/configure	Fri Apr 17 05:35:11 2009 -0500
++++ b/configure	Tue May 26 16:34:50 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