]> code.ossystems Code Review - openembedded-core.git/commit
cpan.bbclass: Fix CCFLAGS.
authorXin Ouyang <Xin.Ouyang@windriver.com>
Thu, 21 Jun 2012 07:13:54 +0000 (15:13 +0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 16 Jul 2012 15:36:57 +0000 (08:36 -0700)
commit855211ae7a224f96663862d4a0e58a90d945dd48
treec22efe8c24a39dabba796a753fc2abe8b92a3c9b
parent8f30d41ede28a86564c402ce5b467e51aec6b15d
cpan.bbclass: Fix CCFLAGS.

We should not just replace CCFLAGS with CFLAGS while compiling, because
this may cause run-time errors with perl's DynaLoader.pm.

Tested on qemux86 with new libnet-libidn-perl bb recipe:

root@qemux86:~# perl -e "use Net::LibIDN"
Not a CODE reference at /usr/lib/perl/5.14.2//DynaLoader.pm line 213.
END failed--call queue aborted at /usr/lib/perl/vendor_perl/5.14.2//Net/LibIDN.pm line 213.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/cpan.bbclass