summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-11-13 05:50:08 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-11-13 05:50:08 (GMT)
commit4c9218d51dc3c6c84a8d5c488f234ed7575107c6 (patch)
treed4b007f509a5376b8a56939bc33ef05ca29f9dc1 /scripts
parentb9902e788d5e401078af872ab628015da8e8cd44 (diff)
parent69405c3b32fba0fe789d7919e0e3b0c60c6195cf (diff)
Merge pull request #245 from villytiger/install-strip
Use install-strip target for gcc optionally
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/100-gcc.sh6
-rw-r--r--scripts/build/internals.sh2
-rw-r--r--scripts/crosstool-NG.sh.in2
3 files changed, 7 insertions, 3 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh
index 28dda1d..6515f96 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 21f6472..52eaa3d 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=""
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index a3514cb..b9b8aee 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -458,7 +458,7 @@ if [ -z "${CT_RESTART}" ]; then
CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"
;;
strip)
- CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES}" = "y"
+ CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_STRIP_HOST_TOOLCHAIN_EXECUTABLES}" = "y"
;;
# If any other is missing, only warn at low level
*)