Portability fix for new Digest::SHA Makefile.PL.
authorCraig A. Berry <craigberry@mac.com>
Thu, 7 Mar 2013 04:01:24 +0000 (22:01 -0600)
committerCraig A. Berry <craigberry@mac.com>
Thu, 7 Mar 2013 04:40:07 +0000 (22:40 -0600)
Non-native file specifications don't play nice with native make
utilities.

Without this, the build on VMS is broken.  Submitted upstream at:

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

cpan/Digest-SHA/Makefile.PL

index f367dfa..6119bfa 100644 (file)
@@ -4,6 +4,7 @@ use strict;
 use ExtUtils::MakeMaker;
 use Getopt::Std;
 use Config qw(%Config);
+use File::Spec;
 
 my $PM = 'lib/Digest/SHA.pm';
 
@@ -33,8 +34,8 @@ if ($Config{archname} =~ /^i[3456]86/ && $Config{ccname} eq 'gcc') {
        push(@extra, OPTIMIZE => '-O1 -fomit-frame-pointer');
 }
 
-my @srcs = map { "src/$_" } qw(sha.c sha64bit.c);
-my @hdrs = map { "src/$_" } qw(sha.h sha64bit.h);
+my @srcs = map { File::Spec->catfile('src', $_) } qw(sha.c sha64bit.c);
+my @hdrs = map { File::Spec->catfile('src', $_) } qw(sha.h sha64bit.h);
 my $deps = join(' ', @srcs, @hdrs);
 
 my %att = (