Support -L options in VC++ link.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 20 Jan 2010 14:04:29 +0000 (14:04 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 20 Jan 2010 14:04:29 +0000 (14:04 +0000)
util/pl/VC-32.pl

index d4fefaf70ac7e2de0124a63a01c1f2a27c533418..09dc26f107bb7f3860066da5b67cd69c23bbc721 100644 (file)
@@ -27,6 +27,10 @@ $rm='del /Q';
 
 $zlib_lib="zlib1.lib";
 
+# Santize -L options for ms link
+$l_flags =~ s/-L("\[^"]+")/\/libpath:$1/g;
+$l_flags =~ s/-L(\S+)/\/libpath:$1/g;
+
 # C compiler stuff
 $cc='cl';
 if ($FLAVOR =~ /WIN64/)