summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-01-05 10:03:27 -0800
committerSaul Wold <sgw@linux.intel.com>2011-01-12 00:55:48 -0800
commitd52b9ff86dbdfce8d5dc3f2e4544b9f44bdeeea0 (patch)
tree9ed97e2d0acf9cb4fae54d73d72f31c4d98e3ab7 /meta/classes
parent83796edd29561f02b6f7b036351711f8def77a4f (diff)
downloadopenembedded-core-d52b9ff86dbdfce8d5dc3f2e4544b9f44bdeeea0.tar.gz
openembedded-core-d52b9ff86dbdfce8d5dc3f2e4544b9f44bdeeea0.tar.bz2
openembedded-core-d52b9ff86dbdfce8d5dc3f2e4544b9f44bdeeea0.zip
cpan.bbclass: add a new parameter EXTRA_PERLFLAGS
We use host perl while building target perl modules. When some of the prebuilt perl modules such as scalar::util are used in the build process directly or indirectly, perl needs to load the arch specific .so library file. If perl can not find the .so library files, then perl tries to use the target pm files which ends up in circular perl module depedancy causing build time perl invocation to fail. Adding this new parameter viz EXTRA_PERLFLAGS to cpan.bbclass allows perl module recipes to specify the location of such host .so files for hostperl, so that build time invocation of perl does not fail. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cpan.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index 05f2374f4f..1cfd0221dd 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -4,6 +4,7 @@
inherit cpan-base
EXTRA_CPANFLAGS ?= ""
+EXTRA_PERLFLAGS ?= ""
# Env var which tells perl if it should use host (no) or target (yes) settings
export PERLCONFIGTARGET = "${@is_target(d)}"
@@ -15,7 +16,7 @@ export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
cpan_do_configure () {
export PERL5LIB="${PERL_ARCHLIB}"
- yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
+ yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL ${EXTRA_CPANFLAGS}
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
. ${STAGING_LIBDIR}/perl/config.sh
# Use find since there can be a Makefile generated for each Makefile.PL