# HG changeset patch # User Rob Landley # Date 1165274714 18000 # Node ID 1202bdb4402562a7e78ba3d9c14c2e7897c5ac9d # Parent 7946bc54424b9b94301684563e6962c6105349b6 Build for the wrapper script. (Which still doesn't work right.) diff -r 7946bc54424b -r 1202bdb44025 build.sh --- 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