This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct d6897368 - Win32 requires the correct path for -I for lib/
[perl5.git] / make_ext.pl
index a40b708..61945c4 100644 (file)
@@ -163,7 +163,7 @@ if ($is_Win32) {
     $ENV{PATH} = "$topdir;$topdir\\win32\\bin;$ENV{PATH}";
     my $pl2bat = "$topdir\\win32\\bin\\pl2bat";
     unless (-f "$pl2bat.bat") {
-       my @args = ($perl, '-Ilib', ("$pl2bat.pl") x 2);
+       my @args = ($perl, "-I$topdir\\lib", ("$pl2bat.pl") x 2);
        print "@args\n";
        system(@args) unless defined $::Cross::platform;
     }