diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2007-04-30 04:06:45 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2007-04-30 04:06:45 +0000 |
commit | e24dc2b20fb661b1d804d180b3d0901e1254e679 (patch) | |
tree | 1408a1f2c3cd8ec0106d87bef9e029204571403d /classes | |
parent | 920183918a5607e1b9bf4e3aa899140b91f587b8 (diff) | |
parent | bca1af865658a00eb25d22c0fb22b8fecc745813 (diff) |
merge of 'cb611997ee14f51bf6877589c7d518d35ed52f50'
and 'e1f2e3537870e6d4a997727168dd4b5fc7824f14'
Diffstat (limited to 'classes')
-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 |