This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cwd.xs won't load in development releases, unless we munge the
authorNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 06:37:13 +0000 (06:37 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 06:37:13 +0000 (06:37 +0000)
XS_VERSION.

p4raw-id: //depot/perl@34543

ext/Cwd/Makefile.PL

index 1e9a80d..45baa48 100644 (file)
@@ -1,7 +1,11 @@
 # core-only Makefile.PL
 use ExtUtils::MakeMaker;
+use File::Spec;
+my $up = File::Spec->updir();
+
 WriteMakefile(
     NAME    => 'Cwd',
     VERSION_FROM => '../../lib/Cwd.pm',
     'DEFINE' => '-DNO_PPPORT_H',
+    XS_VERSION => eval MM->parse_version(File::Spec->catfile($up, $up, 'lib', 'Cwd.pm')),
 );