mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
internals: fix stripping canadians
We can't run the newly built gcc when it is a canadian cross. Thus, we can't get the version number, and thus we can't get the directory libexec subdirectory to strip. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
9d38d4427c
commit
3d0844d41e
@ -22,7 +22,7 @@ do_finish() {
|
||||
esac
|
||||
CT_DoLog INFO "Stripping all toolchain executables"
|
||||
CT_Pushd "${CT_PREFIX_DIR}"
|
||||
gcc_version=$( "./bin/${CT_TARGET}-gcc" -dumpversion )
|
||||
gcc_version=$( cat "${CT_SRC_DIR}/gcc-${CT_GCC_VERSION}/gcc/BASE-VER" )
|
||||
for _t in "bin/${CT_TARGET}-"* \
|
||||
"${CT_TARGET}/bin/"* \
|
||||
"libexec/gcc/${CT_TARGET}/${gcc_version}/"* \
|
||||
|
Loading…
x
Reference in New Issue
Block a user