From: Gurusamy Sarathy Date: Fri, 28 Apr 2000 08:54:52 +0000 (+0000) Subject: use $ENV{LIB} to search for libs under Visual C compiler X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a35f6a9019609822ad5cd364f029e26ec87f93c5;p=p5sagit%2Fp5-mst-13.2.git use $ENV{LIB} to search for libs under Visual C compiler on Windows (from Jochen Wiedmann ) p4raw-id: //depot/perl@5990 --- diff --git a/lib/ExtUtils/Liblist.pm b/lib/ExtUtils/Liblist.pm index 6029557..640978a 100644 --- a/lib/ExtUtils/Liblist.pm +++ b/lib/ExtUtils/Liblist.pm @@ -230,6 +230,10 @@ sub _win32_ext { # add "$Config{installarchlib}/CORE" to default search path push @libpath, "$Config{installarchlib}/CORE"; + if ($VC and exists $ENV{LIB} and $ENV{LIB}) { + push @libpath, split /;/, $ENV{LIB}; + } + foreach (Text::ParseWords::quotewords('\s+', 0, $potential_libs)){ $thislib = $_;