X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=72420c92272050abff8a75c25e89e896c69ae13c;hb=3dcf211109d4015689c4257e76f3b4e5143a69ae;hp=51b5d98ad2d01bba9709eafd4f2e52ae95b62ad3;hpb=c6d90de6e5236d32df49609bb9179b0108033c86;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 51b5d98..72420c9 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 @@ -358,7 +360,6 @@ extraclean :: $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print | xargs $(RM) __rm_food -rmdir $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) > /dev/null 2>&1 -endif # $(way) == u endif # $(SplitObjs) endif # $(HS_SRCS)