summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-09-24 11:46:01 +0000
committersimonmar <unknown>2001-09-24 11:46:01 +0000
commitef31e4e41a76c88d534b0dc19391df22dfaa4511 (patch)
tree4be2f45551addafa42e0103a01818243cb45b38c
parent46c17047c4d3f2125cd53bf712b6881ea81fa139 (diff)
downloadhaskell-ef31e4e41a76c88d534b0dc19391df22dfaa4511.tar.gz
[project @ 2001-09-24 11:46:01 by simonmar]
Use $(LD) instead of hard-wired ld.
-rw-r--r--mk/target.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/target.mk b/mk/target.mk
index dd2ddcbd2a..be37c9346e 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