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

index ac1959a..4501347 100644 (file)
@@ -13,6 +13,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/)