cpan.bbclass: Fix CCFLAGS.
authorXin Ouyang <Xin.Ouyang@windriver.com>
Thu, 21 Jun 2012 07:13:54 +0000 (15:13 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jul 2012 09:53:56 +0000 (10:53 +0100)
commite97dc307de96f086bcdeb7dde1a6d31a09e6ab8c
treeb5112359573de6af9504dba8bfe02804c839f9c7
parent52515b129e2299f03a0845066d675e67917ed1a5
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.

(From OE-Core rev: 855211ae7a224f96663862d4a0e58a90d945dd48)

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cpan.bbclass