summaryrefslogtreecommitdiff
path: root/package/perl/perl-fix-Module-Build.patch
blob: 26b15e4011e194a38a4623b41c0e3e58cba278e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

Index: b/cpan/Module-Build/lib/Module/Build/Base.pm
===================================================================
--- a/cpan/Module-Build/lib/Module/Build/Base.pm
+++ b/cpan/Module-Build/lib/Module/Build/Base.pm
@@ -456,7 +456,7 @@
   my $proto = shift;
   my $c     = ref($proto) ? $proto->{config} : 'Module::Build::Config';
 
-  my $perl  = $^X;
+  my $perl  = $ENV{RUN_PERL} || $^X;
   my $perl_basename = File::Basename::basename($perl);
 
   my @potential_perls;