[m-rev.] diff: fix MacOS ranlib problem

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Oct 20 22:00:27 AEST 2002


On 18-Oct-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> scripts/Mmake.rules:
> boehm_gc/Mmakefile:
> runtime/Mmakefile:
> library/Mmakefile:
> trace/Mmakefile:
> 	Run $(RANLIB) on the installed libraries.
> 	This is needed on MacOS 10.1, where the linker checks the date
> 	stamp on the .a file, refusing to link if this date is greater
> 	than the date when ranlib was run.  Since installing the
> 	libraries with `cp' updates their timestamp, we need to rerun ranlib.

Estimated hours taken: 0.25
Branches: main

"Oops, missed one."
Apply the same change as for the other */Mmakefile
files in my 2002/10/18 patch to browser/Mmakefile.

browser/Mmakefile:
        Run $(RANLIB) on the installed libraries.
        This is needed on MacOS 10.1, where the linker checks the date
        stamp on the .a file, refusing to link if this date is greater
        than the date when ranlib was run.  Since installing the
        libraries with `cp' updates their timestamp, we need to rerun ranlib.

Workspace: /home/ceres/fjh/mercury
Index: browser/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/browser/Mmakefile,v
retrieving revision 1.25
diff -u -d -r1.25 Mmakefile
--- browser/Mmakefile	24 Sep 2002 06:55:04 -0000	1.25
+++ browser/Mmakefile	20 Oct 2002 11:54:45 -0000
@@ -182,6 +182,7 @@
 	cp `vpath_find lib$(BROWSER_LIB_NAME).$A \
 		lib$(BROWSER_LIB_NAME).$(EXT_FOR_SHARED_LIB)` \
 		$(INSTALL_MERC_LIB_DIR)
+	$(RANLIB) $(INSTALL_MERC_LIB_DIR)/lib$(BROWSER_LIB_NAME).$A
 
 endif
 
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list