From 72b9e86f52583857b2a356997fea59bb5b929110 Mon Sep 17 00:00:00 2001 From: alibrary Date: Wed, 17 Jul 2002 07:33:46 +0000 Subject: [PATCH] Reducing the lenght of the link string for libs --- build/module.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/module.tpl b/build/module.tpl index 934f64b2890..70968629b97 100644 --- a/build/module.tpl +++ b/build/module.tpl @@ -136,7 +136,10 @@ $(@PACKAGE@LIB):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk ifndef ALIQUIET @echo "***** Linking library $@ *****" endif - $(MUTE)$(SHLD) $(SOFLAGS) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) -o $@ $(@PACKAGE@O) $(@PACKAGE@DO) $(SHLIB) + $(MUTE)export TMPDIR=$(shell mktemp -d /tmp/$$$$.XXXXXX) ;\ + cd $$TMPDIR ; find $(CURDIR)/@MODULE@/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\ + $(SHLD) $(SOFLAGS) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) -o $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(SHLIB) ;\ + cd $(CURDIR) ; rm -rf $$TMPDIR $(@PACKAGE@BIN):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk ifndef ALIQUIET -- 2.39.3