In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/dc0655f797469c47a9e4296c6ab99e8cfba3bd7a?hp=0f97ff050df266014a09da4b71f01a6b423337d3>

- Log -----------------------------------------------------------------
commit dc0655f797469c47a9e4296c6ab99e8cfba3bd7a
Author: Nicholas Clark <[email protected]>
Date:   Tue Sep 15 11:50:47 2009 +0100

    Cwd.pm needs to be installed in lib before Encode recurses. Mark the 
dependency
-----------------------------------------------------------------------

Summary of changes:
 Makefile.SH |    2 ++
 make_ext.pl |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Makefile.SH b/Makefile.SH
index a343d61..83f1ad1 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -190,6 +190,8 @@ for f in $dynamic_ext; do
 
     : Parallel makes reveal that we have some interdependencies
     case $f in
+       Encode) extra_dep="$extra_dep
+$this_target: lib/auto/Cwd/Cwd.$dlext" ;;
        Math/BigInt/FastCalc|Devel/NYTProf) extra_dep="$extra_dep
 $this_target: lib/auto/List/Util/Util.$dlext" ;;
        Unicode/Normalize) extra_dep="$extra_dep
diff --git a/make_ext.pl b/make_ext.pl
index b0be209..fa12621 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;

--
Perl5 Master Repository

Reply via email to