Skip to content

Commit

Permalink
add a config item to specify arguments to strip
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19270 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nico committed Jan 22, 2010
1 parent 3a27cd7 commit 1bf76dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Config.in
Expand Up @@ -173,6 +173,15 @@ choice

endchoice

config STRIP_ARGS
string
prompt "Strip arguments"
depends USE_STRIP
default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
default "--strip-all"
help
Specifies arguments passed to the strip command when stripping binaries

config USE_MKLIBS
bool "Strip unnecessary functions from libraries"
help
Expand Down
2 changes: 1 addition & 1 deletion rules.mk
Expand Up @@ -174,7 +174,7 @@ ifneq ($(CONFIG_NO_STRIP),)
STRIP:=:
else
ifneq ($(CONFIG_USE_STRIP),)
STRIP:=$(TARGET_CROSS)strip
STRIP:=$(TARGET_CROSS)strip $(call qstrip,$(CONFIG_STRIP_ARGS))
else
ifneq ($(CONFIG_USE_SSTRIP),)
STRIP:=$(STAGING_DIR_HOST)/bin/sstrip
Expand Down

0 comments on commit 1bf76dc

Please sign in to comment.