This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In B::Deparse, refactor common code into _features_from_bundle().
[perl5.git] / make_ext.pl
index 13f892a..d6561b1 100644 (file)
@@ -211,10 +211,11 @@ elsif ($is_VMS) {
 
 {
     # Cwd needs to be built before Encode recurses into subdirectories.
+    # Pod::Simple needs to be built before Pod::Functions
     # This seems to be the simplest way to ensure this ordering:
     my (@first, @other);
     foreach (@extspec) {
-       if ($_ eq 'Cwd') {
+       if ($_ eq 'Cwd' || $_ eq 'Pod/Simple') {
            push @first, $_;
        } else {
            push @other, $_;
@@ -377,6 +378,10 @@ WriteMakefile(
 EOM
            close $fh or die "Can't close Makefile.PL: $!";
        }
+  eval {
+    my $ftime = time - 4;
+    utime $ftime, $ftime, 'Makefile.PL';
+  };
        print "\nRunning Makefile.PL in $ext_dir\n";
 
        # Presumably this can be simplified
@@ -388,7 +393,7 @@ EOM
            # Inherited from make_ext.pl
            @cross = '-MCross';
        }
-           
+
        my @args = ("-I$lib_dir", @cross, 'Makefile.PL');
        if ($is_VMS) {
            my $libd = VMS::Filespec::vmspath($lib_dir);