diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2007-04-30 04:12:09 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2007-04-30 04:12:09 +0000 |
commit | c8ffd6dc2793e9cab761ad7c9c6b1bdd8425a28b (patch) | |
tree | 1891aa13788b48f893254bfee38d8787397b8583 /classes/cpan.bbclass | |
parent | 32bd006a7e537d275653a0899430aa194e736148 (diff) | |
parent | ffc51060357ce21e555d9ed50042ccfa04286528 (diff) |
merge of '0e85d248181cfdf704931e925058cea1824151c2'
and '4ae75f1e55a112909b2988f967576647e8b6ed03'
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r-- | classes/cpan.bbclass | 9 |
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 |