1.1 --- a/scripts/build/internals.sh Thu Jul 22 23:26:08 2010 +0200
1.2 +++ b/scripts/build/internals.sh Thu May 27 23:18:19 2010 +0200
1.3 @@ -8,6 +8,21 @@
1.4
1.5 CT_DoStep INFO "Cleaning-up the toolchain's directory"
1.6
1.7 + if [ "${CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES}" = "y" ]; then
1.8 + CT_DoLog INFO "Stripping all toolchain executables"
1.9 + CT_Pushd "${CT_PREFIX_DIR}"
1.10 + 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.11 + [ -x bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v bin/${CT_TARGET}-${t}${CT_HOST_SUFFIX}
1.12 + [ -x ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v ${CT_TARGET}/bin/${t}${CT_HOST_SUFFIX}
1.13 + done
1.14 + CT_Popd
1.15 + CT_Pushd "${CT_PREFIX_DIR}/libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}"
1.16 + for t in cc1 cc1plus collect2; do
1.17 + [ -x ${t}${CT_HOST_SUFFIX} ] && ${CT_HOST}-strip --strip-all -v ${t}${CT_HOST_SUFFIX}
1.18 + done
1.19 + CT_Popd
1.20 + fi
1.21 +
1.22 if [ "${CT_BARE_METAL}" != "y" ]; then
1.23 CT_DoLog EXTRA "Installing the populate helper"
1.24 sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \