use $ENV{LIB} to search for libs under Visual C compiler
Gurusamy Sarathy [Fri, 28 Apr 2000 08:54:52 +0000 (08:54 +0000)]
on Windows (from Jochen Wiedmann <joe@ispsoft.de>)

p4raw-id: //depot/perl@5990

lib/ExtUtils/Liblist.pm

index 6029557..640978a 100644 (file)
@@ -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 = $_;