From 6cb1bbe471ea4e5098a47e4515765e6cae96b9a0 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 27 Oct 2005 21:49:13 +0200 Subject: "make STRIPCMD=" will disable the stripping of binaries Almost all packagers have always patched the stripping out, cause the buildsystems takes care of it. Signed-off-by: Kay Sievers --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f69ac96e9d..d309cf6c90 100644 --- a/Makefile +++ b/Makefile @@ -169,7 +169,7 @@ endif # if DEBUG is enabled, then we do not strip ifeq ($(strip $(DEBUG)),true) CFLAGS += -DDEBUG - STRIPCMD = /bin/true unstripped binary + STRIPCMD = endif ifeq ($(strip $(USE_GCOV)),true) @@ -233,7 +233,9 @@ all: $(KLCC) $(PROGRAMS) $(MAN_PAGES) # "Static Pattern Rule" to build all programs $(PROGRAMS): %: $(HOST_PROGS) $(KLCC) $(HEADERS) $(GEN_HEADERS) $(LIBSYSFS) $(LIBUDEV) %.o $(QUIET) $(LD) $(LDFLAGS) $@.o -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS) +ifneq ($(strip $(STRIPCMD)),) $(QUIET) $(STRIPCMD) $@ +endif # our own copy of klibc, it is not used if KLCC is given $(KLCC): -- cgit v1.2.3-54-g00ecf