[project @ 2004-02-16 10:46:07 by simonmar]
authorsimonmar <unknown>
Mon, 16 Feb 2004 10:46:07 +0000 (10:46 +0000)
committersimonmar <unknown>
Mon, 16 Feb 2004 10:46:07 +0000 (10:46 +0000)
Fiddle with HC_SPLIT_POST to reduce the size of the ld command line
and hence avoid bumping into command-line length limits for a while
longer.

From: Jeremy Shaw <jeremy.shaw@lindows.com>

mk/target.mk

index 2c297b0..109dbfc 100644 (file)
@@ -324,7 +324,7 @@ HC_SPLIT_PRE = \
     $(RM) $@; if [ ! -d $(basename $@)_split ]; then mkdir $(basename $@)_split; else \
     $(FIND) $(basename $@)_split -name '*.$(way_)o' -print | xargs $(RM) __rm_food; fi
 ifeq "$(GhcWithInterpreter)" "YES"
-HC_SPLIT_POST = (cd $(dir $@) && $(LD) -r $(LD_X) -o $(notdir $@) $(basename $(notdir $@))_split/*.$(way_)o)
+HC_SPLIT_POST = (cd $(basename $@)_split && $(LD) -r $(LD_X) -o ../$(notdir $@) *.$(way_)o)
 else
 HC_SPLIT_POST = touch $@
 endif # GhcWithInterpreter == YES