mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
strip: Explicitely call right binaries
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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)/
|
||||
|
||||
|
||||
11
lfs/strip
11
lfs/strip
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user