mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e789c1b406
commit
a5bb0bdcf0
@@ -26,13 +26,14 @@ cpan_do_configure () {
|
|||||||
test -f $f2 || continue
|
test -f $f2 || continue
|
||||||
sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
|
sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
|
||||||
-e 's/perl.real/perl/' \
|
-e 's/perl.real/perl/' \
|
||||||
|
-e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
|
||||||
$f2
|
$f2
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cpan_do_compile () {
|
cpan_do_compile () {
|
||||||
oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
|
oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpan_do_install () {
|
cpan_do_install () {
|
||||||
|
|||||||
Reference in New Issue
Block a user