1.1 --- a/scripts/build/internals.sh Thu May 27 23:18:19 2010 +0200
1.2 +++ b/scripts/build/internals.sh Sat Sep 11 12:42:22 2010 +0200
1.3 @@ -5,20 +5,29 @@
1.4 # crosstool-NG-provided files.
1.5 do_finish() {
1.6 local _t
1.7 + local strip_args
1.8
1.9 CT_DoStep INFO "Cleaning-up the toolchain's directory"
1.10
1.11 if [ "${CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES}" = "y" ]; then
1.12 + case "$CT_HOST" in
1.13 + *darwin*)
1.14 + strip_args=""
1.15 + ;;
1.16 + *)
1.17 + strip_args="--strip-all -v"
1.18 + ;;
1.19 + esac
1.20 CT_DoLog INFO "Stripping all toolchain executables"
1.21 CT_Pushd "${CT_PREFIX_DIR}"
1.22 - for t in ar as c++ c++filt cpp dlltool dllwrap g++ gcc gcc-${CT_CC_VERSION} gcov gprof ld nm objcopy objdump ranlib readelf size strings strip addr2line windmc windres; do
1.23 - [ -x bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX}
1.24 - [ -x ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX}
1.25 + for t in ar as c++ c++filt cpp dlltool dllwrap g++ gcc gcc-${CT_CC_VERSION} gcov gprof ld nm objcopy objdump ranlib readelf size strings strip addr2line windmc windres; do
1.26 + [ -x bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip ${strip_args} bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX}
1.27 + [ -x ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip ${strip_args} ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX}
1.28 done
1.29 CT_Popd
1.30 CT_Pushd "${CT_PREFIX_DIR}/libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}"
1.31 - for t in cc1 cc1plus collect2; do
1.32 - [ -x ${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v ${t}${CT_HOST_SUFFIX}
1.33 + for t in cc1 cc1plus collect2; do
1.34 + [ -x ${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip ${strip_args} ${t}${CT_HOST_SUFFIX}
1.35 done
1.36 CT_Popd
1.37 fi