Mercurial > hg > aboriginal
diff cross-compiler.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 | f80c47e8991d |
children | 8a1c6271bbeb |
line wrap: on
line diff
--- a/cross-compiler.sh Thu Oct 15 22:00:29 2009 -0500 +++ b/cross-compiler.sh Mon Oct 19 00:40:08 2009 -0500 @@ -30,6 +30,8 @@ HOST_UTILS=1 build_section $C_LIBRARY +exit + cat > "${STAGE_DIR}"/README << EOF && Cross compiler for $ARCH From http://impactlinux.com/fwl @@ -45,11 +47,14 @@ # Strip the binaries -cd "$STAGE_DIR" -for i in `find bin -type f` `find "$CROSS_TARGET" -type f` -do - strip "$i" 2> /dev/null -done +if [ -z "$SKIP_STRIP" ] +then + cd "$STAGE_DIR" + for i in `find bin -type f` `find "$CROSS_TARGET" -type f` + do + strip "$i" 2> /dev/null + done +fi # Tar it up