Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
return $self->fetch_string($key);
}
-@@ -530,7 +530,12 @@
+@@ -530,7 +530,21 @@
sub DESTROY { }
sub AUTOLOAD {
+ {
+ $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$/;
die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
}
install -d ${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"