summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2007-04-30 04:06:45 +0000
committerJamie Lenehan <lenehan@twibble.org>2007-04-30 04:06:45 +0000
commite24dc2b20fb661b1d804d180b3d0901e1254e679 (patch)
tree1408a1f2c3cd8ec0106d87bef9e029204571403d /classes
parent920183918a5607e1b9bf4e3aa899140b91f587b8 (diff)
parentbca1af865658a00eb25d22c0fb22b8fecc745813 (diff)
merge of 'cb611997ee14f51bf6877589c7d518d35ed52f50'
and 'e1f2e3537870e6d4a997727168dd4b5fc7824f14'
Diffstat (limited to 'classes')
-rw-r--r--classes/cpan.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 00709f7e18..687dbcd1cb 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -41,9 +41,18 @@ def perl_get_libdirs(d):
libdirs = libdir + '/*/*/perl5'
return libdirs
+def is_target(d):
+ import bb
+ if not bb.data.inherits_class('native', d):
+ return "yes"
+ return "no"
+
IS_NEW_PERL = "${@is_new_perl(d)}"
PERLLIBDIRS = "${@perl_get_libdirs(d)}"
+# Env var which tells perl if it should use host (no) or target (yes) settings
+export PERLCONFIGTARGET = "${@is_target(d)}"
+
cpan_do_configure () {
perl Makefile.PL ${EXTRA_CPANFLAGS}
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then