blob: 719f07c9cc4512f55b9f9057ef6e9db380445796 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 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
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006Hack 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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014---
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 {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 foreach (@INC) {
24 <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 $dir = "$_/auto/$modpname";
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026+
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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033--
342.1.4
35