summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-12-03 11:51:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-12-03 11:51:02 -0800
commit12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe (patch)
treed73846fc4bc09409342ef9301908cdc7532bfc66 /Makefile
parentad025d8db847c1100b25478191a1a0ca9ad22db1 (diff)
downloadtxr-12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe.tar.gz
txr-12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe.tar.bz2
txr-12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe.zip
* 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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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