From 7aecaf39579e89822ead142d8c17b9f07e5a50b4 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 29 Oct 2007 22:05:17 +0000 Subject: [PATCH] Merged revisions 87460 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r87460 | kpfleming | 2007-10-29 17:04:29 -0500 (Mon, 29 Oct 2007) | 2 lines 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/trunk@87462 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f0feddc42..0086d19d63 100644 --- a/Makefile +++ b/Makefile @@ -200,7 +200,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