From: Nicholas Clark Date: Tue, 21 Oct 2008 06:37:13 +0000 (+0000) Subject: Cwd.xs won't load in development releases, unless we munge the X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8589c6b9142760892ed7e19e96415212bd88c02f;p=p5sagit%2Fp5-mst-13.2.git Cwd.xs won't load in development releases, unless we munge the XS_VERSION. p4raw-id: //depot/perl@34543 --- diff --git a/ext/Cwd/Makefile.PL b/ext/Cwd/Makefile.PL index 1e9a80d..45baa48 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')), );