This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] fix Liblist.pm to tolerate backslashen in paths
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 1 Jun 1998 19:42:06 +0000 (19:42 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 1 Jun 1998 19:42:06 +0000 (19:42 +0000)
p4raw-id: //depot/win32/perl@1070

lib/ExtUtils/Liblist.pm

index ccdffb8..5388641 100644 (file)
@@ -206,6 +206,10 @@ sub _win32_ext {
     }
     warn "Potential libraries are '$potential_libs':\n" if $verbose;
 
+    # normalize to forward slashes
+    $libpth =~ s,\\,/,g;
+    $potential_libs =~ s,\\,/,g;
+
     # compute $extralibs from $potential_libs
 
     my(@searchpath); # from "-L/path" entries in $potential_libs