From bd6bd308992f078f9568422383d15969d8c467e6 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 23 Aug 2005 15:08:55 +0000 Subject: make MALLOC_DEBUG build work properly (issue #4970 with additional changes) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6379 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d2227b9bb..206b801e2 100755 --- a/Makefile +++ b/Makefile @@ -204,6 +204,11 @@ GREP=/usr/xpg4/bin/grep M4=/usr/local/bin/m4 endif +# if doing a recursive make, don't double-up CFLAGS +ifeq ($(MAKECMDGOALS),ast_expr.a) +CFLAGS= +endif + INCLUDE=-Iinclude -I../include CFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY CFLAGS+=$(OPTIMIZE) -- cgit v1.2.3