summaryrefslogtreecommitdiff
path: root/mk/target.mk
diff options
context:
space:
mode:
authorsof <unknown>2002-05-01 17:51:35 +0000
committersof <unknown>2002-05-01 17:51:35 +0000
commitf96ba1d9e9e967548906bdd7724fa040a35729c1 (patch)
tree38f5c1620edb5fd5d3a0435814ea133d95216357 /mk/target.mk
parent19a2c6e86632e9bb97693795d8862cc03910b4f8 (diff)
downloadhaskell-f96ba1d9e9e967548906bdd7724fa040a35729c1.tar.gz
[project @ 2002-05-01 17:51:35 by sof]
BUILD_LIB: also include EXTRA_OBJS
Diffstat (limited to 'mk/target.mk')
-rw-r--r--mk/target.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/target.mk b/mk/target.mk
index 620b51ae77..df76ae29d3 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -296,7 +296,7 @@ SRC_HC_OPTS += -split-objs
ifeq "$(ArSupportsInput)" ""
define BUILD_LIB
$(RM) $@ $@.tmp
-(echo $(STUBOBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o') | xargs ar q $@.tmp
+(echo $(STUBOBJS) $(EXTRA_OBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o') | xargs ar q $@.tmp
$(RANLIB) $@.tmp
$(MV) $@.tmp $@
endef
@@ -304,6 +304,7 @@ else
define BUILD_LIB
$(RM) $@ $@.tmp
echo $(STUBOBJS) > $@.list
+echo $(EXTRA_OBJS) > $@.list
$(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' >> $@.list
$(AR) $(AR_OPTS) $@.tmp $(ArSupportsInput) $@.list
$(RM) $@.list