util/pl/VC-32.pl: bufferoverflowu.lib only when actually needed [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Thu, 7 Jan 2010 11:04:49 +0000 (11:04 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 7 Jan 2010 11:04:49 +0000 (11:04 +0000)
PR: 2086

util/pl/VC-32.pl

index 85121c8ed1bee90de85c1b94ba800bb45c13b681..d4fefaf70ac7e2de0124a63a01c1f2a27c533418 100644 (file)
@@ -153,7 +153,8 @@ if ($FLAVOR =~ /CE/)
 else
        {
        $ex_libs.=' gdi32.lib crypt32.lib advapi32.lib user32.lib';
-       $ex_libs.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/);
+       $ex_libs.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/ and `cl 2>&1` =~ /14\.00\.4[0-9]{4}\./);
+
        }
 
 # As native NT API is pure UNICODE, our WIN-NT build defaults to UNICODE,