summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2014-11-06 00:33:38 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-09 10:21:22 +0000
commit5fe3954013771a9f1cd1df63a6fd6ca5c470c7ad (patch)
tree5700f412ad4d3a1a4daba153c0f5e893968bc380 /meta/recipes-devtools/perl
parentb3ea9b640487cc463d60db1b9103693c45f8bee4 (diff)
downloadpoky-5fe3954013771a9f1cd1df63a6fd6ca5c470c7ad.tar.gz
perl: set the perl libraries search path
The default value for this is ../../lib which ends up with something like: | ./sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real \ | "-I../../lib" "-I../../lib" "-MExtUtils::Command::MM" -e pod2man \ | "--" --section=0 --perm_rw=644 perldoc.pod blib/man1/perldoc.1 in this case, nativeperl will find libraries from the target build, When using an x86-64 host to target Haswell, you can end up with ../../lib including precompiled modules which use Haswell instructions, it fails with: | Running pm_to_blib for dist/if directly | Skip ../../lib/if.pm (unchanged) | Makefile:457: recipe for target 'manifypods' failed | make[1]: *** [manifypods] Illegal instruction So set it to use the -native ones instead of those from the target build. (From OE-Core rev: 82ac2a29126dc38d23c278b82d129d73b17000b7) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl_5.20.0.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb
index ec4d2140e7..3ca0f53964 100644
--- a/meta/recipes-devtools/perl/perl_5.20.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.20.0.bb
@@ -94,6 +94,11 @@ HOSTPERL = "${STAGING_BINDIR_NATIVE}/perl-native/perl${PV}"
94# Where to find .so files - use the -native versions not those from the target build 94# Where to find .so files - use the -native versions not those from the target build
95export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/" 95export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/"
96 96
97# Where to find perl @INC/#include files
98# - use the -native versions not those from the target build
99export PERL_LIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/"
100export PERL_ARCHLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${PV}/"
101
97# LDFLAGS for shared libraries 102# LDFLAGS for shared libraries
98export LDDLFLAGS = "${LDFLAGS} -shared" 103export LDDLFLAGS = "${LDFLAGS} -shared"
99 104