diff root-filesystem.sh @ 854:3794d9a0be4c

Add SKIP_STRIP configuration option to do what it says on the tin, and stop blanking CFLAGS and CFLAGSXX so "export CFLAGS=-g" can pass through to package builds.
author Rob Landley <rob@landley.net>
date Mon, 19 Oct 2009 00:40:08 -0500
parents 5dd1a99a0737
children 563c1abb06d0
line wrap: on
line diff
--- a/root-filesystem.sh	Thu Oct 15 22:00:29 2009 -0500
+++ b/root-filesystem.sh	Mon Oct 19 00:40:08 2009 -0500
@@ -173,14 +173,17 @@
 
 fi   # End of NATIVE_TOOLCHAIN != only
 
-# Delete some unneeded files
+if [ -z "$SKIP_STRIP" ]
+then
+  # Delete some unneeded files
 
-rm -rf "$ROOT_TOPDIR"/{info,man,libexec/gcc/*/*/install-tools}
+  rm -rf "$ROOT_TOPDIR"/{info,man,libexec/gcc/*/*/install-tools}
 
-# Clean up and package the result
+  # Clean up and package the result
 
-"${ARCH}-strip" "$ROOT_TOPDIR"/{bin/*,sbin/*,libexec/gcc/*/*/*}
-"${ARCH}-strip" --strip-unneeded "$ROOT_TOPDIR"/lib/*.so
+  "${ARCH}-strip" "$ROOT_TOPDIR"/{bin/*,sbin/*,libexec/gcc/*/*/*}
+  "${ARCH}-strip" --strip-unneeded "$ROOT_TOPDIR"/lib/*.so
+fi
 
 create_stage_tarball