]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
don't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debuggi...
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 29 Oct 2007 22:04:29 +0000 (22:04 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 29 Oct 2007 22:04:29 +0000 (22:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87460 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 0b9ebfcc2c7205c115e26022d9e0001b25700780..5b3c5887c32dba5db20c05f96a36db036ada981d 100644 (file)
--- 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