From 12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 3 Dec 2009 11:51:02 -0800 Subject: * Makefile (CFLAGS): Better test for g++, when removing warning options not appropriate for g++. Sometimes g++ may be called something that dosn't end in g++, like g++4. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 383ceb65..5713e0c1 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \ $(OPT_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS) CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS)) -ifeq ($(patsubst %g++,y,$(CC)),y) +ifneq ($(subst g++,@,$(notdir $(CC))),$(notdir $(CC))) CFLAGS := $(filter-out -Wmissing-prototypes -Wstrict-prototypes,$(CFLAGS)) endif -- cgit v1.2.3