From: simonmar Date: Mon, 24 Sep 2001 11:46:01 +0000 (+0000) Subject: [project @ 2001-09-24 11:46:01 by simonmar] X-Git-Tag: Approximately_9120_patches~926 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ef31e4e41a76c88d534b0dc19391df22dfaa4511 [project @ 2001-09-24 11:46:01 by simonmar] Use $(LD) instead of hard-wired ld. --- diff --git a/mk/target.mk b/mk/target.mk index dd2ddcb..be37c93 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -444,7 +444,7 @@ HC_SPLIT_PRE = \ $(RM) $@; if [ ! -d $(basename $@) ]; then mkdir $(basename $@); else \ $(FIND) $(basename $@) -name '*.$(way_)o' | xargs $(RM) __rm_food; fi ifeq "$(GhcWithInterpreter)" "YES" -HC_SPLIT_POST = ld -r -x -o $@ $(basename $@)/*.$(way_)o +HC_SPLIT_POST = $(LD) -r -x -o $@ $(basename $@)/*.$(way_)o else HC_SPLIT_POST = touch $@ endif # GhcWithInterpreter == YES @@ -474,12 +474,12 @@ ifeq "$(StripLibraries)" "YES" ifeq "$(SplitObjs)" "YES" SRC_HC_POST_OPTS += \ for i in $(basename $@)/*; do \ - ld -r -x -o $$i.tmp $$i; \ + $(LD) -r -x -o $$i.tmp $$i; \ $(MV) $$i.tmp $$i; \ done else SRC_HC_POST_OPTS += \ - ld -r -x -o $@.tmp $@; $(MV) $@.tmp $@ + $(LD) -r -x -o $@.tmp $@; $(MV) $@.tmp $@ endif # SplitObjs endif # StripLibraries @@ -521,7 +521,7 @@ ifneq "$(DONT_WANT_STD_GHCI_LIB_RULE)" "YES" # hslibs/Win32 uses this 'feature'. # $(GHCI_LIBRARY) :: $(LIBOBJS) - ld -r -x -o $@ $(LIBOBJS) $(STUBOBJS) + $(LD) -r -x -o $@ $(LIBOBJS) $(STUBOBJS) endif # DONT_WANT_STD_GHCI_LIB_RULE endif # GhcWithInterpreter