[project @ 2002-05-22 18:36:19 by sof]
authorsof <unknown>
Wed, 22 May 2002 18:36:19 +0000 (18:36 +0000)
committersof <unknown>
Wed, 22 May 2002 18:36:19 +0000 (18:36 +0000)
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).]

mk/target.mk

index ae851cd..a76b9f7 100644 (file)
@@ -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