changeset 53:3fd961e31444

Build a gcc wrapper for _target_, and add a "strip" command to halve the amount of space the minimal native build system takes up.
author Rob Landley <rob@landley.net>
date Wed, 20 Dec 2006 01:58:41 -0500
parents 6d6551a37687
children 65cd203a5b34
files mini-native.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mini-native.sh	Wed Dec 20 01:36:36 2006 -0500
+++ b/mini-native.sh	Wed Dec 20 01:58:41 2006 -0500
@@ -111,7 +111,7 @@
 # Build and install gcc wrapper script.
 
 mv "${TOOLS}/bin/gcc" "${TOOLS}/bin/gcc-unwrapped" &&
-gcc "${TOP}"/sources/toys/gcc-uClibc.c -Os -s -o "${TOOLS}/bin/${ARCH}-gcc"
+"${ARCH}-gcc" "${TOP}"/sources/toys/gcc-uClibc.c -Os -s -o "${TOOLS}/bin/gcc"
 
 [ $? -ne 0 ] && dienow
 
@@ -149,10 +149,11 @@
 
 [ $? -ne 0 ] && dienow
 
-
 fi
 
 # Packaging goes here
 
+"${ARCH}-strip" "${TOOLS}"/{bin/*,sbin/*,libexec/gcc/*/*/*}
+
 # Color back to normal
 echo -e "\e[0mBuild complete"