This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix Time::HiRes probes on VMS.
authorCraig A. Berry <craigberry@mac.com>
Sat, 27 Nov 2010 00:29:42 +0000 (18:29 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 27 Nov 2010 00:29:42 +0000 (18:29 -0600)
We have not been correctly building this on VMS since the location
was changed in core because we have not been able to loate include
files.  This mirrors the upstream patch at:

https://rt.cpan.org/Ticket/Display.html?id=63363

cpan/Time-HiRes/Makefile.PL

index 2b9257a..9436f0c 100644 (file)
@@ -118,15 +118,7 @@ __EOD__
        my $ccflags = $Config{'ccflags'} . ' ' . "-I$COREincdir";
 
        if ($^O eq 'VMS') {
-           if ($ENV{PERL_CORE}) {
-               # Fragile if the extensions change hierarchy within
-               # the Perl core but this should do for now.
-                $cccmd = "$Config{'cc'} /include=([---]) $tmp.c";
-           } else {
-               my $perl_core = $Config{'installarchlib'};
-               $perl_core =~ s/\]$/.CORE]/;
-                $cccmd = "$Config{'cc'} /include=(perl_root:[000000],$perl_core) $tmp.c";
-           }
+            $cccmd = "$Config{'cc'} /include=($COREincdir) $tmp.c";
         }
 
         if ($args{silent} || !$VERBOSE) {