diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-11 17:04:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-11 17:04:47 +0000 |
commit | 42ab721cb4e97487f3f944268e5447a25cb4d061 (patch) | |
tree | 5f8487066fd42ac094c467aedaf1be3d4028b414 /lib | |
parent | 30b346b1c53fc8a744b25a108fad8a0d62d196cb (diff) | |
download | perl-42ab721cb4e97487f3f944268e5447a25cb4d061.tar.gz |
make Liblist return consistently backslashed paths
p4raw-id: //depot/perl@1427
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExtUtils/Liblist.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ExtUtils/Liblist.pm b/lib/ExtUtils/Liblist.pm index 5388641f3a..6c2fef874f 100644 --- a/lib/ExtUtils/Liblist.pm +++ b/lib/ExtUtils/Liblist.pm @@ -264,6 +264,12 @@ sub _win32_ext { # make sure paths with spaces are properly quoted @extralibs = map { (/\s/ && !/^".*"$/) ? qq["$_"] : $_ } @extralibs; $lib = join(' ',@extralibs); + + # normalize back to backward slashes (to help braindead tools) + # XXX this may break equally braindead GNU tools that don't understand + # backslashes, either. Seems like one can't win here. Cursed be CP/M. + $lib =~ s,/,\\,g; + warn "Result: $lib\n" if $verbose; wantarray ? ($lib, '', $lib, '') : $lib; } |