changeset 920:a69213462fbe

If "$CCWRAP" is quoted it gets passed in as a blank argument when empty, confusing the compiler.
author Rob Landley <rob@landley.net>
date Sat, 05 Dec 2009 21:09:44 -0600
parents 8b69eeb17ebf
children d7485ceb119f
files root-filesystem.sh sources/sections/ccwrap.sh
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/root-filesystem.sh	Fri Dec 04 12:02:47 2009 -0600
+++ b/root-filesystem.sh	Sat Dec 05 21:09:44 2009 -0600
@@ -150,8 +150,8 @@
 # Put statically and dynamically linked hello world programs on there for
 # test purposes.
 
-"${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os "$CFLAGS" -o "$ROOT_TOPDIR/bin/hello-dynamic" &&
-"${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os "$CFLAGS" -static -o "$ROOT_TOPDIR/bin/hello-static"
+"${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$ROOT_TOPDIR/bin/hello-dynamic" &&
+"${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -static -o "$ROOT_TOPDIR/bin/hello-static"
 
 [ $? -ne 0 ] && dienow
 
--- a/sources/sections/ccwrap.sh	Fri Dec 04 12:02:47 2009 -0600
+++ b/sources/sections/ccwrap.sh	Sat Dec 05 21:09:44 2009 -0600
@@ -49,7 +49,7 @@
 
 # Build wrapper binary
 
-"$TEMP" "$SOURCES/toys/ccwrap.c" -Os "$CFLAGS" \
+"$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \
   -o "$STAGE_DIR/bin/${PROGRAM_PREFIX}cc" $LIBTYPE $STATIC_FLAGS \
   -DGCC_UNWRAPPED_NAME='"'"${PROGRAM_PREFIX}rawcc"'"' || dienow