diff options
-rw-r--r-- | ext/Cwd/Makefile.PL | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/Cwd/Makefile.PL b/ext/Cwd/Makefile.PL index 1e9a80d8a7..45baa487c7 100644 --- a/ext/Cwd/Makefile.PL +++ b/ext/Cwd/Makefile.PL @@ -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')), ); |