From: Kevin P. Fleming Date: Mon, 29 Oct 2007 22:04:29 +0000 (+0000) Subject: don't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debuggi... X-Git-Tag: 1.4.14~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb778cb3b9688bc48f0c7ae9e40ef7338e4bd2c7;p=thirdparty%2Fasterisk.git don't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debugging preprocessor issues) because the compiler will whine about each compile command git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87460 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 0b9ebfcc2c..5b3c5887c3 100644 --- a/Makefile +++ b/Makefile @@ -194,7 +194,11 @@ ifeq ($(OSARCH),linux-gnu) endif endif -ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) +ifeq ($(findstring -save-temps,$(ASTCFLAGS)),) +ASTCFLAGS+=-pipe +endif + +ASTCFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h