From 95217843d50bf1e9ac6d64f627bc5d3f6d8f2c3f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 18 Dec 2002 02:22:12 +0000 Subject: [PATCH] The link command specifies which version of the C library to link with (see /M[TD]d? option). So we must not explicitly link with 'msvcrt.lib'. Fixes the msvcrt test crashes. --- tools/winapi/msvcmaker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker index ebd61f80221..b19ad14fc1c 100755 --- a/tools/winapi/msvcmaker +++ b/tools/winapi/msvcmaker @@ -780,7 +780,7 @@ sub _generate_dsp { print OUT " /nologo"; print OUT " libcmt.lib" if $project =~ /^ntdll$/; # FIXME: Kludge foreach my $import (@imports) { - print OUT " $import.lib"; + print OUT " $import.lib" if ($import ne "msvcrt"); } print OUT " /dll" if $dll; print OUT " /subsystem:console" if $console;