[m-rev.] diff: another msvcrt fix

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Oct 4 03:08:46 AEDT 2011


Branches: main, 11.07

Fix another problem with --with-mscvrt.

scripts/ml.in:
 	The single-threaded version of the Microsoft C library is
 	no longer available.   Only the multi-threaded one is used by
 	Visual Studio 2005 onwards.

scripts/parse_ml_options.sh-subr.in:
 	Update a comment regarding gcc's -s option on Mac OS X.

Index: scripts/ml.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/ml.in,v
retrieving revision 1.126
diff -u -r1.126 ml.in
--- scripts/ml.in	21 Sep 2011 06:11:30 -0000	1.126
+++ scripts/ml.in	3 Oct 2011 15:59:38 -0000
@@ -376,7 +376,7 @@
  if test $use_msvcrt = "yes"
  then
  	MSVCRT_OPTS="-MD" 			# Enable linking with the MS Visual C runtime.
-	NODEFAULTLIB_FLAG="-nodefaultlib:libc"
+	NODEFAULTLIB_FLAG="-nodefaultlib:libcmt"
  else
  	MSVCRT_OPTS=""
  	NODEFAULTLIB_FLAG=""
Index: scripts/parse_ml_options.sh-subr.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/parse_ml_options.sh-subr.in,v
retrieving revision 1.15
diff -u -r1.15 parse_ml_options.sh-subr.in
--- scripts/parse_ml_options.sh-subr.in	9 Sep 2011 19:29:44 -0000	1.15
+++ scripts/parse_ml_options.sh-subr.in	3 Oct 2011 16:01:50 -0000
@@ -35,7 +35,8 @@
  		strip=false
  		;;
  	*-darwin*)
-		# `gcc -s' doesn't seem to do the right thing on Mac OS X
+		# `gcc -s' is deprecated on Mac OS X.  Enabling it will cause
+		# a warning to be emitted.
  		strip=false
  		;;
  	*)


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list