From: Jan Dubois Date: Tue, 11 Aug 2009 23:56:48 +0000 (-0700) Subject: Don't explicitly link against msvcrt when using MinGW. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=679b67fee662acf52b2b1af175101ee323ae7d60;p=p5sagit%2Fp5-mst-13.2.git Don't explicitly link against msvcrt when using MinGW. 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. --- diff --git a/win32/makefile.mk b/win32/makefile.mk index 6549134..77e1363 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -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) \