diff options
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r-- | crawl-ref/source/makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index a6246b1b0a..3fdb42db58 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -213,6 +213,8 @@ GCC := gcc GXX := g++ endif +GCC_GTE_4_3_0 := $(shell util/gcc-gte.pl $(GCC) 4.3.0) + RLTILES = rltiles # @@ -340,9 +342,14 @@ endif # MacOS endif # TILES -CFWARN_L := -D_FORTIFY_SOURCE=0 -Wno-array-bounds -Wno-parentheses -Wwrite-strings -Wshadow -pedantic +CFWARN_L := -D_FORTIFY_SOURCE=0 -Wno-parentheses -Wwrite-strings -Wshadow -pedantic CFOTHERS_L = $(EXTERNAL_FLAGS) $(EXTRA_FLAGS) $(DEFINES) -DCLUA_BINDINGS $(SDL_CFLAGS) +ifeq ($(GCC_GTE_4_3_0),Yes) +CFWARN_L += -Wno-array-bounds +endif + + # # Figure out the build settings for this type of build # |