summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-27 19:26:55 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-27 19:26:55 +0000
commit7db7bdf689600ca108429bc42355a1904397c502 (patch)
tree5909134dc20a1943bbc667691e5c7090f6f2194e /make
parent486640aadbcb36c3e99e5d3ec85e9412afe9dc67 (diff)
Patch from Lauri Leukkunen adding knobs controlling whether
host binaries are stripped or not
Diffstat (limited to 'make')
-rw-r--r--make/gcc-uclibc-2.95.mk3
-rw-r--r--make/gcc-uclibc-3.3.mk3
2 files changed, 6 insertions, 0 deletions
diff --git a/make/gcc-uclibc-2.95.mk b/make/gcc-uclibc-2.95.mk
index a896e478c..9294b53f7 100644
--- a/make/gcc-uclibc-2.95.mk
+++ b/make/gcc-uclibc-2.95.mk
@@ -27,6 +27,7 @@ GCC_CAT:=bzcat
STLPORT_SITE=http://www.stlport.org/archive
STLPORT_SOURCE=STLport-4.5.3.tar.gz
STLPORT_DIR=$(TOOL_BUILD_DIR)/STLport-4.5.3
+GCC_STRIP_HOST_BINARIES:=true
#############################################################
#
@@ -184,7 +185,9 @@ $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) install
# Strip the host binaries
+ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
+endif
# Set up the symlinks to enable lying about target name.
set -e; \
(cd $(STAGING_DIR); \
diff --git a/make/gcc-uclibc-3.3.mk b/make/gcc-uclibc-3.3.mk
index df05de77d..465f0d50d 100644
--- a/make/gcc-uclibc-3.3.mk
+++ b/make/gcc-uclibc-3.3.mk
@@ -33,6 +33,7 @@ GCC_SITE:=http://gcc.get-software.com/releases/gcc-$(GCC_VERSION)
GCC_SOURCE:=gcc-$(GCC_VERSION).tar.bz2
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)
GCC_CAT:=bzcat
+GCC_STRIP_HOST_BINARIES:=true
#############################################################
#
@@ -154,7 +155,9 @@ $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
PATH=$(TARGET_PATH) $(MAKE) $(JLEVEL) -C $(GCC_BUILD_DIR2) install
# Strip the host binaries
+ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
+endif
# Set up the symlinks to enable lying about target name.
set -e; \
(cd $(STAGING_DIR); \