changeset 17:1202bdb44025

Build for the wrapper script. (Which still doesn't work right.)
author Rob Landley <rob@landley.net>
date Mon, 04 Dec 2006 18:25:14 -0500
parents 7946bc54424b
children eaf7a8d5e697
files build.sh
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.sh	Mon Dec 04 17:07:35 2006 -0500
+++ b/build.sh	Mon Dec 04 18:25:14 2006 -0500
@@ -142,4 +142,13 @@
 cd .. &&
 $CLEANUP uClibc-*
 
+GCCNAME="$(echo "$CROSS"/bin/*-gcc)"
+# Convert above path into just the name at the end, plus -unwrapped, and
+# surrounded by double quotes.
+GCCMANGLED='"'"$(echo $NAME | sed -e 's@.*/@@')"'-unwrapped"' 
+[ ! -f "$NAME"-unwrapped ] && cp "$GCCNAME" "$GCCNAME"-unwrapped
+
+gcc sources/toys/gcc-uClibc.c -DGCC_BIN="$GCCMANGLED" -DDYNAMIC_LINKER='"/lib/ld-uClibc.so.0"' -DEXTRAGCCFLAGS=0 -Os -s -o "$GCCNAME"
+
+
 [ $? -ne 0 ] && dienow