summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl/dynaloaderhack.patch')
-rw-r--r--meta/recipes-devtools/perl/perl/dynaloaderhack.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-devtools/perl/perl/dynaloaderhack.patch b/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
deleted file mode 100644
index 719f07c9cc..0000000000
--- a/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 2e0ce5d27e70defd66ace0661af7c24daae34f8b Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sat, 19 Jan 2013 23:49:24 +0000
4Subject: [PATCH 7/8] perl: Add dyanloader build hack
5
6Hack the dynamic module loader so that we use native modules since we can't load
7the target ones.
8
9Upstream-Status: Inappropriate
10
11RP
122013/01/13
13
14---
15 ext/DynaLoader/DynaLoader_pm.PL | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL
19index e828f35..4021559 100644
20--- a/ext/DynaLoader/DynaLoader_pm.PL
21+++ b/ext/DynaLoader/DynaLoader_pm.PL
22@@ -343,6 +343,10 @@ sub bootstrap {
23 foreach (@INC) {
24 <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>>
25 $dir = "$_/auto/$modpname";
26+
27+ if (defined $ENV{PERL_LIB} and defined $ENV{PERLHOSTLIB}) {
28+ $dir =~ s/$ENV{PERL_LIB}/$ENV{PERLHOSTLIB}/g;
29+ }
30
31 next unless -d $dir; # skip over uninteresting directories
32
33--
342.1.4
35