projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2001-07-23 22:52:33 by ken]
[ghc-hetmet.git]
/
mk
/
target.mk
diff --git
a/mk/target.mk
b/mk/target.mk
index
6eabebf
..
8b09305
100644
(file)
--- a/
mk/target.mk
+++ b/
mk/target.mk
@@
-418,11
+418,22
@@
ifneq "$(way)" "u"
SRC_HC_OPTS += -split-objs
SRC_HC_OPTS += -split-objs
+ifeq "$(ArSupportsInput)" ""
define BUILD_LIB
$(RM) $@
(echo $(STUBOBJS); $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o') | xargs ar q $@
$(RANLIB) $@
endef
define BUILD_LIB
$(RM) $@
(echo $(STUBOBJS); $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o') | xargs ar q $@
$(RANLIB) $@
endef
+else
+define BUILD_LIB
+$(RM) $@
+echo $(STUBOBJS) > $@.list
+$(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o' >> $@.list
+$(AR) $(AR_OPTS) $@ $(ArSupportsInput) $@.list
+$(RM) $@.list
+$(RANLIB) $@
+endef
+endif
# Extra stuff for compiling Haskell files with $(SplitObjs):
# Extra stuff for compiling Haskell files with $(SplitObjs):