# HG changeset patch # User "Yann E. MORIN" # Date 1297976047 -3600 # Node ID 1cf50fe7c41829032ac1f3c81b2b25d16f59ad73 # Parent dabf63d30d50e2c645f6d227e0daaaf9b1b1ab04 internals: fix stripping host binaries The gcc used by linaro has a version number specific to Linaro, but identifies itself with its upstream version numbering scheme. This breaks the strip in the finish step, because the actual gcc version is not the same as the configured one (eg. 4.5.2 vs. linaro-4.5-2011.02-0). Signed-off-by: "Yann E. MORIN" (transplanted from a3818c3b03e053adb8f6b7e6cf326f16a7f0c4aa) diff -r dabf63d30d50 -r 1cf50fe7c418 scripts/build/internals.sh --- a/scripts/build/internals.sh Tue Feb 01 00:20:35 2011 +0100 +++ b/scripts/build/internals.sh Thu Feb 17 21:54:07 2011 +0100 @@ -7,6 +7,7 @@ local _t local _type local strip_args + local gcc_version CT_DoStep INFO "Cleaning-up the toolchain's directory" @@ -21,10 +22,11 @@ esac CT_DoLog INFO "Stripping all toolchain executables" CT_Pushd "${CT_PREFIX_DIR}" - for _t in "bin/${CT_TARGET}-"* \ - "${CT_TARGET}/bin/"* \ - "libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}/"* \ - "libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}/install-tools/"* \ + gcc_version=$( "./bin/${CT_TARGET}-gcc" -dumpversion ) + for _t in "bin/${CT_TARGET}-"* \ + "${CT_TARGET}/bin/"* \ + "libexec/gcc/${CT_TARGET}/${gcc_version}/"* \ + "libexec/gcc/${CT_TARGET}/${gcc_version}/install-tools/"* \ ; do _type="$( file "${_t}" |cut -d ' ' -f 2- )" case "${_type}" in