[m-rev.] diff: configure.in fix for MacOS X

Peter Ross pro at missioncriticalit.com
Tue May 20 01:24:05 AEST 2003


Hi,


===================================================================


Estimated hours taken: 0.25
Branches: main

Fix the bootstrap mercury compiler test in configure.in so that it
works under MacOS X.

configure.in:
	Don't pass `--linkage static' to mmc when testing the
	bootstrap compiler on MacOS X because that passes implies
	passing -static to gcc and the gcc man page on MacOS X states
	that "-static will not work on Mac OS X unless all of your
	libraries (including libgcc.a) have also been compiled with
	-static".

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.365
diff -u -r1.365 configure.in
--- configure.in	15 May 2003 07:23:40 -0000	1.365
+++ configure.in	19 May 2003 15:04:16 -0000
@@ -146,6 +146,7 @@
 
 case "$host" in 
 	i386-pc-solaris2.8)	link_static_opt= ;;
+	*powerpc*apple*darwin*) link_static_opt= ;;
 	*)			link_static_opt="--linkage static" ;;
 esac
 
--------------------------------------------------------------------------
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