From 485e41f618286d048162fea0077f314e2ff4f4da Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Wed, 20 Apr 2011 16:27:09 -0700 Subject: cpan.bbclass: export PERLHOSTLIB for perl modules This makes sure that native perl .so can get loaded at the buildtime, and avoids following kind of errors while building perl modules: Nitin A Kamble 2011/04/20 + perl Makefile.PL EXPATLIBPATH=/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib EXPATINCPATH=/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/include *** Module name IN: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Cwd.pm *** Module name OUT: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Cwd.pm *** Module name IN: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm *** Module name OUT: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm Can't load '/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/auto/Fcntl/Fcntl.so' for module Fcntl: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/auto/Fcntl/Fcntl.so: wrong ELF class: ELFCLASS32 at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/XSLoader.pm line 79. at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm line 215 BEGIN failed--compilation aborted at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm line 216. Compilation failed in require at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/File/Temp.pm line 146. BEGIN failed--compilation aborted at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/File/Temp.pm line 146. Compilation failed in require at inc/Devel/CheckLib.pm line 12. BEGIN failed--compilation aborted at inc/Devel/CheckLib.pm line 12. Compilation failed in require at Makefile.PL line 5. BEGIN failed--compilation aborted at Makefile.PL line 5. ERROR: Function 'do_configure' failed (see /disk0/pokybuild/build0/tmp/work/i586-poky-linux/libxml-parser-perl-2.40-r0/temp/log.do_configure.16956 for further information) Signed-off-by: Nitin A Kamble --- meta/classes/cpan.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes') diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 1cfd0221dd..9b8431bed0 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass @@ -13,6 +13,7 @@ export PERLCONFIGTARGET = "${@is_target(d)}" export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE" export PERL_LIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" +export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}/" cpan_do_configure () { export PERL5LIB="${PERL_ARCHLIB}" -- cgit v1.2.3