Don't explicitly link against msvcrt when using MinGW.
authorJan Dubois <jand@activestate.com>
Tue, 11 Aug 2009 23:56:48 +0000 (16:56 -0700)
committerDavid Mitchell <davem@iabyn.com>
Sat, 15 Aug 2009 16:22:07 +0000 (17:22 +0100)
The latest releases of MinGW generate hard linker errors
when msvcrt is specified explicitly.  It will still link
against this library implicitly anyways, so specifying it
isn't needed.

(cherry picked from commit 679b67fee662acf52b2b1af175101ee323ae7d60)

win32/makefile.mk

index a1c8656..153a23c 100644 (file)
@@ -493,7 +493,10 @@ LOCDEFS            = -DPERLDLL -DPERL_CORE
 SUBSYS         = console
 CXX_FLAG       = -xc++
 
-LIBC           = -lmsvcrt
+# Current releases of MinGW 5.1.4 (as of 11-Aug-2009) will fail to link
+# correctly if -lmsvcrt is specified explicitly.
+LIBC           =
+#LIBC          = -lmsvcrt
 
 # same libs as MSVC
 LIBFILES       = $(CRYPT_LIB) $(LIBC) \