mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
add a sep option for stripping
This commit is contained in:
parent
72d59dbd76
commit
c70240cc1d
@ -318,6 +318,13 @@ config CONFIG_EFENCE
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config CONFIG_STRIP_BINARIES
|
||||||
|
bool "Strip busybox objects"
|
||||||
|
default y if !CONFIG_DEBUG
|
||||||
|
default n if CONFIG_DEBUG
|
||||||
|
help
|
||||||
|
Whether or not we strip the busybox binary and such.
|
||||||
|
|
||||||
config CONFIG_DEBUG_YANK_SUSv2
|
config CONFIG_DEBUG_YANK_SUSv2
|
||||||
bool "Disable obsolete features removed before SUSv3?"
|
bool "Disable obsolete features removed before SUSv3?"
|
||||||
default y
|
default y
|
||||||
|
@ -238,10 +238,13 @@ endif
|
|||||||
LDFLAGS+=$(if $(call is_eq,$(CONFIG_DEBUG),y),$(call check_ld,LDFLAGS,--warn-common,)$(call check_ld,LDFLAGS,--sort-common,))
|
LDFLAGS+=$(if $(call is_eq,$(CONFIG_DEBUG),y),$(call check_ld,LDFLAGS,--warn-common,)$(call check_ld,LDFLAGS,--sort-common,))
|
||||||
ifeq ($(CONFIG_DEBUG),y)
|
ifeq ($(CONFIG_DEBUG),y)
|
||||||
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
|
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
|
||||||
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
|
|
||||||
else
|
else
|
||||||
CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG
|
CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_STRIP_BINARIES),y)
|
||||||
STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
|
STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
|
||||||
|
else
|
||||||
|
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
|
||||||
endif
|
endif
|
||||||
PROG_CFLAGS+=$(if $(call is_eq,$(CONFIG_STATIC),y),\
|
PROG_CFLAGS+=$(if $(call is_eq,$(CONFIG_STATIC),y),\
|
||||||
$(call check_gcc,PROG_CFLAGS,-static,))
|
$(call check_gcc,PROG_CFLAGS,-static,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user