summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch b/meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch
index 061a8236fd..21d8bb96e7 100644
--- a/meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch
+++ b/meta/recipes-devtools/perl/perl-5.12.2/perl-dynloader.patch
@@ -1,11 +1,15 @@
1Upstream-Status:Inappropriate [embedded specific]
2
1Allow the location that .so files are searched for for dynamic 3Allow the location that .so files are searched for for dynamic
2loading to be changed via an environment variable. This is to allow 4loading to be changed via an environment variable. This is to allow
3us to load .so's from the host system while building for the target 5us to load .so's from the host system while building for the target
4system. 6system.
5 7
8Update by Nitin A Kamble <nitin.a.kamble@intel.com> 2011/04/21
9
6--- perl-5.12.2/dist/XSLoader/XSLoader_pm.PL 2007/04/20 09:03:08 1.1 10--- perl-5.12.2/dist/XSLoader/XSLoader_pm.PL 2007/04/20 09:03:08 1.1
7+++ perl-5.12.2/dist/XSLoader/XSLoader_pm.PL 2007/04/20 09:03:08 11+++ perl-5.12.2/dist/XSLoader/XSLoader_pm.PL 2007/04/20 09:03:08
8@@ -65,6 +65,15 @@ 12@@ -65,6 +65,19 @@
9 print OUT <<'EOT'; 13 print OUT <<'EOT';
10 my $modpname = join('/',@modparts); 14 my $modpname = join('/',@modparts);
11 my $modlibname = (caller())[1]; 15 my $modlibname = (caller())[1];
@@ -15,7 +19,11 @@ system.
15+ { 19+ {
16+ my $hostlib = $ENV{PERLHOSTLIB}; 20+ my $hostlib = $ENV{PERLHOSTLIB};
17+ print STDERR "*** Module name IN: $modlibname\n"; 21+ print STDERR "*** Module name IN: $modlibname\n";
18+ $modlibname =~ s#(?<!/)(\.\./)*lib/#$hostlib#g; 22+ ($p1, $p2, $p3, $p4, $p5) = $modlibname =~ m/(^(.*lib\/)?)((perl\/[0-9\.]*\/)?)(.*)$/;
23+ print STDERR "*** p1: $p1 p3: $p3 p5: $p5\n";
24+ if ( $p1 ne "" ) {
25+ $modlibname = $hostlib.$p5;
26+ }
19+ print STDERR "*** Module name OUT: $modlibname\n"; 27+ print STDERR "*** Module name OUT: $modlibname\n";
20+ } 28+ }
21 my $c = @modparts; 29 my $c = @modparts;