diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-12-03 11:51:02 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-12-03 11:51:02 -0800 |
commit | 12d43b07be6f86ef92c0eb9b59fd23c1f5aa1fbe (patch) | |
tree | d73846fc4bc09409342ef9301908cdc7532bfc66 /Makefile | |
parent | ad025d8db847c1100b25478191a1a0ca9ad22db1 (diff) | |
download | txr-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |