diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-21 06:37:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-21 06:37:13 +0000 |
commit | 8589c6b9142760892ed7e19e96415212bd88c02f (patch) | |
tree | 61a932d82d848ccabd5b28b080132faba3739bed /ext | |
parent | b230e30d6b57ff1dff6b7ccb4076beb872594d5d (diff) | |
download | perl-8589c6b9142760892ed7e19e96415212bd88c02f.tar.gz |
Cwd.xs won't load in development releases, unless we munge the
XS_VERSION.
p4raw-id: //depot/perl@34543
Diffstat (limited to 'ext')
-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')), ); |