X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=mk%2Ftarget.mk;h=8aac7d30c54a5cfc921ceee39fd1da6ea41ece91;hp=51b5d98ad2d01bba9709eafd4f2e52ae95b62ad3;hb=baf4a0612e370ebe0f397c27024feb8ced23e08a;hpb=c6d90de6e5236d32df49609bb9179b0108033c86 diff --git a/mk/target.mk b/mk/target.mk index 51b5d98..8aac7d3 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -288,12 +288,14 @@ endif # whether HS_SRCS is empty or not. # +# can't split objs in way 'u', so we disable it here +ifeq "$(way)" "u" +SplitObjs = NO +endif + ifneq "$(HS_SRCS)" "" ifeq "$(SplitObjs)" "YES" -# can't split objs in way 'u', so we disable it here -ifneq "$(way)" "u" - SRC_HC_OPTS += -split-objs # We generate the archive into a temporary file libfoo.a.tmp, then @@ -316,7 +318,6 @@ $(AR) $(AR_OPTS) $@ $(ArSupportsInput) $@.list $(RM) $@.list $(RANLIB) $@ endef -endif # Extra stuff for compiling Haskell files with $(SplitObjs):