summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-15 11:50:47 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-15 11:50:47 +0100
commitdc0655f797469c47a9e4296c6ab99e8cfba3bd7a (patch)
tree343d6bb62298d89c93a251ce421efee439ebb5f2 /make_ext.pl
parent0f97ff050df266014a09da4b71f01a6b423337d3 (diff)
downloadperl-dc0655f797469c47a9e4296c6ab99e8cfba3bd7a.tar.gz
Cwd.pm needs to be installed in lib before Encode recurses. Mark the dependency
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/make_ext.pl b/make_ext.pl
index b0be209a70..fa12621240 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -200,6 +200,20 @@ elsif ($is_VMS) {
push @extspec, (split ' ', $Config{nonxs_ext}) if $nonxs;
}
+{
+ # Cwd needs to be built before Encode recurses into subdirectories.
+ # This seems to be the simplest way to ensure this ordering:
+ my (@first, @other);
+ foreach (@extspec) {
+ if ($_ eq 'Cwd') {
+ push @first, $_;
+ } else {
+ push @other, $_;
+ }
+ }
+ @extspec = (@first, @other);
+}
+
foreach my $spec (@extspec) {
my $mname = $spec;
$mname =~ s!/!::!g;