From 69405c3b32fba0fe789d7919e0e3b0c60c6195cf Mon Sep 17 00:00:00 2001 From: Ilya Lyubimov Date: Tue, 10 Nov 2015 12:59:02 +0300 Subject: Use install-strip target for gcc optionally --- scripts/build/cc/100-gcc.sh | 6 +++++- scripts/build/internals.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index 28dda1d5..6515f96c 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -940,7 +940,11 @@ do_gcc_backend() { CT_DoExecLog ALL make ${JOBSFLAGS} all CT_DoLog EXTRA "Installing final gcc compiler" - CT_DoExecLog ALL make ${JOBSFLAGS} install + if [ "${CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES}" = "y" ]; then + CT_DoExecLog ALL make ${JOBSFLAGS} install-strip + else + CT_DoExecLog ALL make ${JOBSFLAGS} install + fi # Remove the libtool "pseudo-libraries": having them in the installed # tree makes the libtoolized utilities that are built next assume diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 21f64728..52eaa3d7 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -11,7 +11,7 @@ do_finish() { CT_DoStep INFO "Cleaning-up the toolchain's directory" - if [ "${CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES}" = "y" ]; then + if [ "${CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES}" = "y" ]; then case "$CT_HOST" in *darwin*) strip_args="" -- cgit v1.2.3