1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

perl: Updates to ensure Config-heavy-target.pl is found

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2009-11-18 22:04:55 +00:00
parent ca5f36ee6a
commit 5b44fa1f29
2 changed files with 13 additions and 2 deletions
+11 -2
View File
@@ -18,7 +18,7 @@ values would be valid for the host only.
return $self->fetch_string($key); return $self->fetch_string($key);
} }
@@ -530,7 +530,12 @@ @@ -530,7 +530,21 @@
sub DESTROY { } sub DESTROY { }
sub AUTOLOAD { sub AUTOLOAD {
@@ -28,7 +28,16 @@ values would be valid for the host only.
+ { + {
+ $cfgfile = 'Config_heavy-target.pl'; + $cfgfile = 'Config_heavy-target.pl';
+ } + }
+ require $cfgfile; + if (defined $ENV{PERL_ARCHLIB})
+ {
+ push @INC, $ENV{PERL_ARCHLIB};
+ require $cfgfile;
+ pop @INC;
+ }
+ else
+ {
+ require $cfgfile;
+ }
goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
} }
+2
View File
@@ -129,6 +129,8 @@ do_install() {
install -d ${D}${datadir}/perl/${PV}/ExtUtils install -d ${D}${datadir}/perl/${PV}/ExtUtils
install lib/ExtUtils/typemap ${D}${datadir}/perl/${PV}/ExtUtils/ install lib/ExtUtils/typemap ${D}${datadir}/perl/${PV}/ExtUtils/
ln -s Config_heavy.pl ${D}${libdir}/perl/${PV}/Config_heavy-target.pl
} }
PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess" PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess"