strip: Explicitely call right binaries

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-12-01 16:31:25 +00:00
parent 63bc6600f8
commit 7b93b62bc8
3 changed files with 11 additions and 4 deletions

View File

@@ -64,9 +64,6 @@ ifeq "$(TOOLCHAIN)" "1"
# Remove man and info pages.
rm -rfv $(TOOLS_DIR)/{,share}/{info,man}
# Strip all binaries.
STRIP="/usr/bin/strip" $(DIR_SRC)/src/stripper $(TOOLS_DIR)/
# Fix ownership of the toolchain.
chown -R root:root $(TOOLS_DIR)/

View File

@@ -29,6 +29,15 @@ VER = ipfire
THISAPP = strip
TARGET = $(DIR_INFO)/$(THISAPP)
ifeq "$(TOOLCHAIN)" "1"
SHELL = /bin/bash
STRIP = /usr/bin/strip
ROOT = $(TOOLS_DIR)
else
SHELL = $(TOOLS_DIR)/bin/bash
STRIP = $(TOOLS_DIR)/bin/strip
endif
###############################################################################
# Top-level Rules
###############################################################################
@@ -49,6 +58,6 @@ $(TARGET) :
# Don't strip VDR binaries, because they use a weird plugin system
# which does not work when unneeded symbols get stripped from
# /usr/sbin/vdr.
$(DIR_SRC)/src/stripper $(ROOT) \
STRIP=$(STRIP) $(SHELL) $(DIR_SRC)/src/stripper $(ROOT) \
--exclude=/usr/src --exclude=$(TOOLS_DIR) \
--exclude=/usr/sbin/vdr --exclude=/usr/lib/vdr

View File

@@ -947,6 +947,7 @@ buildtoolchain() {
lfsmake1 texinfo
lfsmake1 xz
lfsmake1 fake-environ
lfsmake1 strip
lfsmake1 cleanup-toolchain
}