diff --git a/Makefile b/Makefile index 9f0feddc42d25f8822a37ea8af91979d450089cc..0086d19d631006682f385ebc795529720dcc0598 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