summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan_build.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-19 23:48:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-25 12:42:42 +0000
commit240c55275ecaac7feeabc4f0ba99bf0b7390133b (patch)
tree91190380081f22fde4234fd28743b0fe86eeb5b6 /meta/classes/cpan_build.bbclass
parenta6d462b150f6bfebab194e69948cd83ebb13fccd (diff)
downloadpoky-240c55275ecaac7feeabc4f0ba99bf0b7390133b.tar.gz
cpan_build: Fix cmaker Build.PL module builds
Certain cpan Build.PL based modules were failing to build due to the host's config information being used instead of the targets. This patch sets the appropriate variables to ensure the modules get the correct configuration from the target config_heavy.pl script. It also ensures the linker is CCLD, not LD since the LDFLAGS contain -Wl,XXX options and build failures result if LD is used. libencode-detect-perl is a module which tests this class extensively. (From OE-Core rev: 7fac8bffcd250aec90c0b675aeb2bbe7896d0ae1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan_build.bbclass')
-rw-r--r--meta/classes/cpan_build.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass
index 78592be987..eaba40a06f 100644
--- a/meta/classes/cpan_build.bbclass
+++ b/meta/classes/cpan_build.bbclass
@@ -1,7 +1,12 @@
1# 1#
2# This is for perl modules that use the new Build.PL build system 2# This is for perl modules that use the new Build.PL build system
3# 3#
4inherit cpan-base 4inherit cpan-base perlnative
5
6# Env var which tells perl if it should use host (no) or target (yes) settings
7export PERLCONFIGTARGET = "${@is_target(d)}"
8export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
9export LD = "${CCLD}"
5 10
6# 11#
7# We also need to have built libmodule-build-perl-native for 12# We also need to have built libmodule-build-perl-native for