Commit ef31e4e4 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-09-24 11:46:01 by simonmar]

Use $(LD) instead of hard-wired ld.
parent 46c17047
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment