diff options
author | Karl Williamson <khw@cpan.org> | 2019-05-27 12:07:25 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-05-27 12:12:24 -0600 |
commit | 926760a67ed43045b7686a4475d0362da2bbcd8b (patch) | |
tree | fb8ca05fa7ea9432565513ee620f0651f28bcd60 /make_ext.pl | |
parent | b83fde9727ea95eba21d0aae5013700aef5909e6 (diff) | |
download | perl-926760a67ed43045b7686a4475d0362da2bbcd8b.tar.gz |
Make sure 'if' compiled before Pod::Simple
3.36 of Pod::Simple requires 'if', and this makes sure it works.
Diffstat (limited to 'make_ext.pl')
-rw-r--r-- | make_ext.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/make_ext.pl b/make_ext.pl index b9630633cb..0280a027cf 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -217,18 +217,21 @@ elsif (IS_VMS) { { # XXX hack for dependency ordering # Cwd needs to be built before Encode recurses into subdirectories. - # Pod::Simple needs to be built before Pod::Functions + # Pod::Simple needs to be built before Pod::Functions, but after 'if' # lib needs to be built before IO-Compress # This seems to be the simplest way to ensure this ordering: - my (@first, @other); + my (@first, @second, @other); foreach (@extspec) { - if ($_ eq 'Cwd' || $_ eq 'Pod/Simple' || $_ eq 'lib') { + if ($_ eq 'Cwd' || $_ eq 'if' || $_ eq 'lib') { push @first, $_; + } + elsif ($_ eq 'Pod/Simple') { + push @second, $_; } else { push @other, $_; } } - @extspec = (@first, @other); + @extspec = (@first, @second, @other); } if ($Config{osname} eq 'catamount' and @extspec) { |