[m-rev.] enable shared libraries for lcc

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Aug 5 18:30:12 AEST 2003


Estimated hours taken: 2
Branches: main

configure.in:
	Enable the use of shared libraries for lcc on x86 Linux.
	This is needed to pass the tests/debugger/interactive test case.

Workspace: /mnt/mars/home/mars/fjh/ws4/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.370
diff -u -d -r1.370 configure.in
--- configure.in	21 Jul 2003 14:08:32 -0000	1.370
+++ configure.in	2 Aug 2003 03:40:43 -0000
@@ -2805,8 +2805,19 @@
 			rm -f conftest*
 			;;
 		*)
-			AC_MSG_RESULT(no)
-			;;
+			case "$CC" in
+			lcc*)
+				AC_MSG_RESULT(yes)
+				EXT_FOR_SHARED_LIB=so
+				EXE_RPATH_OPT="-Wl-rpath -Wl"
+				EXE_RPATH_SEP=" -Wl-rpath -Wl"
+				SHLIB_RPATH_OPT="-Wl-rpath -Wl"
+				SHLIB_RPATH_SEP=" -Wl-rpath -Wl"
+				;;
+			*)
+				AC_MSG_RESULT(no)
+				;;
+			esac
 		esac
 		# Shared libraries are not the default on x86 systems that
 		# use ELF -- see README.Linux

-- 
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