[m-rev.] diff: fix `mmc --make libfoo' on Windows

Simon Taylor stayl at cs.mu.OZ.AU
Tue Feb 11 02:20:39 AEDT 2003


Estimated hours taken: 0.25
Branches: main, release

configure.in:
	Set EXT_FOR_PIC_OBJECTS and EXT_FOR_LINK_WITH_PIC_OBJECTS to
	`o' on systems that don't support shared libraries. This avoids
	`mmc --make libfoo' attempting to create `.pic_o' or `.lpic_o'
	files on those systems.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.352
diff -u -u -r1.352 configure.in
--- configure.in	10 Feb 2003 09:14:50 -0000	1.352
+++ configure.in	10 Feb 2003 13:31:59 -0000
@@ -2933,6 +2933,8 @@
 		AC_MSG_RESULT(disabled for now because it is untested)
 
 		CFLAGS_FOR_PIC=
+		EXT_FOR_PIC_OBJECTS=o
+		EXT_FOR_LINK_WITH_PIC_OBJECTS=o
 		DEFAULT_LINKAGE=static
 		;;
 	*)
@@ -2940,6 +2942,7 @@
 		# libgc.a.  If the system doesn't support shared libraries,
 		# then we should set it to empty, not `-fpic'.
 		CFLAGS_FOR_PIC=
+		EXT_FOR_PIC_OBJECTS=o
 		EXT_FOR_LINK_WITH_PIC_OBJECTS=o
 		DEFAULT_LINKAGE=static
 		AC_MSG_RESULT(no)
--------------------------------------------------------------------------
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