From: sof Date: Wed, 22 May 2002 18:36:19 +0000 (+0000) Subject: [project @ 2002-05-22 18:36:19 by sof] X-Git-Tag: Approx_11550_changesets_converted~2021 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=7a6b4575709851a7d3e391497a53afd69fcd0e76 [project @ 2002-05-22 18:36:19 by sof] HC_SPLIT_POST: reduce the risk of exceeding command line length limits. [As was, constructing the relocatable ".o"s from split object files failed with stuff inside of libraries/haskell-src/Language/Haskell/ under cygwin(&bash).] --- diff --git a/mk/target.mk b/mk/target.mk index ae851cd..a76b9f7 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -319,7 +319,7 @@ HC_SPLIT_PRE = \ $(RM) $@; if [ ! -d $(basename $@)_split ]; then mkdir $(basename $@)_split; else \ $(FIND) $(basename $@)_split -name '*.$(way_)o' | xargs $(RM) __rm_food; fi ifeq "$(GhcWithInterpreter)" "YES" -HC_SPLIT_POST = $(LD) -r $(LD_X) -o $@ $(basename $@)_split/*.$(way_)o +HC_SPLIT_POST = (cd $(dir $@) && $(LD) -r $(LD_X) -o $(notdir $@) $(basename $(notdir $@))_split/*.$(way_)o) else HC_SPLIT_POST = touch $@ endif # GhcWithInterpreter == YES