autofs-5.0.7 - unbundle NOTSTRIP from DEBUG so they dont depend on each other From: Lan Yixun (dlan) Gentoo build system expects unstripped elf image from the build system, seperate this, will allow us to better control the strip operation. Signed-off-by: Lan Yixun (dlan) --- CHANGELOG | 1 + Makefile.rules | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3af7ece..dd6fc1a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -66,6 +66,7 @@ - use compiler determined by configure instead of hard-coded ones. - remove hard-coded STRIP variable. - use LIBS for link libraries. +- unbundle NOTSTRIP from DEBUG so they dont depend on each other. 25/07/2012 autofs-5.0.7 ======================= diff --git a/Makefile.rules b/Makefile.rules index fa53459..0754a00 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -25,18 +25,16 @@ endif ifdef DEBUG CFLAGS ?= -g -Wall -DDEBUG LDFLAGS ?= -g -STRIP ?= : else +CFLAGS ?= -O2 -Wall +LDFLAGS ?= -s +endif + ifdef DONTSTRIP -CFLAGS ?= -O2 -g -LDFLAGS ?= -g STRIP ?= : else -CFLAGS ?= -O2 -Wall -LDFLAGS ?= -s STRIP ?= strip --strip-debug endif -endif CC ?= gcc CXX ?= g++