[m-rev.] diff: fix configure problem on mundroo

Simon Taylor stayl at cs.mu.OZ.AU
Wed May 22 00:51:48 AEST 2002



Estimated hours taken: 0.1
Branches: main

configure.in:
	Don't pass `--link-flags --static' to mmc on mundroo.
	Statically linked executables segfault on mundroo

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.308
diff -u -u -r1.308 configure.in
--- configure.in	17 May 2002 07:00:51 -0000	1.308
+++ configure.in	21 May 2002 14:38:09 -0000
@@ -80,6 +80,11 @@
 esac
 #-----------------------------------------------------------------------------#
 
+case "$host" in 
+	i386-pc-solaris2.8)	link_static_opt= ;;
+	*)			link_static_opt="--link-flags --static" ;;
+esac
+
 MERCURY_MSG("looking for an already installed Mercury compiler to bootstrap with...")
 AC_PATH_PROG(BOOTSTRAP_MC,mmc)
 if test "$BOOTSTRAP_MC" != ""; then
@@ -120,7 +125,7 @@
 		echo $BOOTSTRAP_MC conftest >&AC_FD_CC 2>&1 &&
 		$BOOTSTRAP_MC \
 			--generate-mmc-deps \
-			--halt-at-warn --link-flags --static conftest \
+			--halt-at-warn $link_static_opt conftest \
 			</dev/null >&AC_FD_CC 2>&1 &&
 		test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world" &&
 		$BOOTSTRAP_MC --output-grade-string --no-mercury-stdlib-dir \
--------------------------------------------------------------------------
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