From 6c61ee8fe36cdcf66d9da1270b5cfea18a398171 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 20 Jan 2010 14:04:29 +0000 Subject: [PATCH] Support -L options in VC++ link. --- util/pl/VC-32.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index d4fefaf70a..09dc26f107 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -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/) -- 2.25.1