X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fghc.mk;h=9c33896621999fbc0eb2a69717bf2c44952d6a31;hb=5b23f41c9ef36eb0d32f8bda5ab002ace074272a;hp=69b03d176ece6876f782971bd4ca3d34361aff53;hpb=926ae90b75cd3368049854898062a563e57c9ad2;p=ghc-hetmet.git diff --git a/rts/ghc.mk b/rts/ghc.mk index 69b03d1..9c33896 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -23,9 +23,6 @@ ALL_RTS_LIBS = $(foreach way,$(rts_WAYS),rts/dist/build/libHSrts$($(way)_libsuf) rts/dist/build/libHSrtsmain.a all_rts : $(ALL_RTS_LIBS) -# The per-dir options -$(eval $(call distdir-opts,rts,dist)) - # ----------------------------------------------------------------------------- # Defining the sources @@ -131,7 +128,12 @@ $(foreach way,$(rts_WAYS),$(eval $(call build-rts-way,$(way)))) # Flags for compiling every file # We like plenty of warnings. -WARNING_OPTS += -Wall -Wextra +WARNING_OPTS += -Wall +ifeq "$(GccLT34)" "YES" +WARNING_OPTS += -W +else +WARNING_OPTS += -Wextra +endif WARNING_OPTS += -Wstrict-prototypes WARNING_OPTS += -Wmissing-prototypes WARNING_OPTS += -Wmissing-declarations