comparison 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
comparison
equal deleted inserted replaced
853:330442bbed6e 854:3794d9a0be4c
28 28
29 [ -z "$C_LIBRARY" ] && C_LIBRARY=uClibc 29 [ -z "$C_LIBRARY" ] && C_LIBRARY=uClibc
30 30
31 HOST_UTILS=1 build_section $C_LIBRARY 31 HOST_UTILS=1 build_section $C_LIBRARY
32 32
33 exit
34
33 cat > "${STAGE_DIR}"/README << EOF && 35 cat > "${STAGE_DIR}"/README << EOF &&
34 Cross compiler for $ARCH 36 Cross compiler for $ARCH
35 From http://impactlinux.com/fwl 37 From http://impactlinux.com/fwl
36 38
37 To use: Add the "bin" subdirectory to your \$PATH, and use "$ARCH-gcc" as 39 To use: Add the "bin" subdirectory to your \$PATH, and use "$ARCH-gcc" as
43 45
44 EOF 46 EOF
45 47
46 # Strip the binaries 48 # Strip the binaries
47 49
48 cd "$STAGE_DIR" 50 if [ -z "$SKIP_STRIP" ]
49 for i in `find bin -type f` `find "$CROSS_TARGET" -type f` 51 then
50 do 52 cd "$STAGE_DIR"
51 strip "$i" 2> /dev/null 53 for i in `find bin -type f` `find "$CROSS_TARGET" -type f`
52 done 54 do
55 strip "$i" 2> /dev/null
56 done
57 fi
53 58
54 # Tar it up 59 # Tar it up
55 60
56 create_stage_tarball 61 create_stage_tarball
57 62