diff --git a/common.mk b/common.mk index 9f2cb0b4..05cc6b56 100644 --- a/common.mk +++ b/common.mk @@ -1,13 +1,16 @@ # Top directory for building complete system, fall back to this directory ROOTDIR ?= $(TOPDIR) +# Strip binaries unless user explicitly disables it +STRIPARGS ?= -s --strip-program=$(CROSS)strip -m 0755 + # Some junk files we always want to be removed when doing a make clean. JUNK = *~ *.bak *.map .*.d *.d DEADJOE semantic.cache *.gdb *.elf core core.* MAKE := @$(MAKE) MAKEFLAGS = --no-print-directory --silent CHECK := cppcheck $(CPPFLAGS) --quiet --enable=all INSTALL := install --backup=off -STRIPINST := $(INSTALL) -s --strip-program=$(CROSS)strip -m 0755 +STRIPINST := $(INSTALL) $(STRIPARGS) ARFLAGS := crus export libdir plugindir incdir ROOTDIR CPPFLAGS LDFLAGS LDLIBS STATIC