diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index c4ede6792..209c9b7c3 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -270,7 +270,7 @@ endif # compiler flags etc. BASECFLAGS= BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement -BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing +BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings BASEASFLAGS=-s #-g BASELDFLAGS= @@ -281,6 +281,13 @@ ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4))) endif endif +# XXX: I (Helixhorned) only know that there's no -Wnarrowing on my OS X 10.6 using GCC 4.2. +ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4))) + ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 3))) + BASECXXFLAGS+= -Wno-narrowing + endif +endif + ifeq ($(PLATFORM),WII) override USE_LIBVPX = 0 endif