From: Jamie Lenehan Date: Fri, 27 Apr 2007 02:22:26 +0000 (+0000) Subject: cpan: Use CCLD for the linking instead of ${TARGET_SYS}-gcc. Without this X-Git-Tag: Release-2010-05/1~8868^2~660^2~36 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cc9d5463dac0412d5591b506e308f3e9cde0494;p=openembedded.git cpan: Use CCLD for the linking instead of ${TARGET_SYS}-gcc. Without this native packages break because -gcc doesn't exist, just gcc. CCLD gets us the correct CC to be used for linking in both cases, so we use that. --- diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index 52430560ea..00709f7e18 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -68,7 +68,7 @@ cpan_do_configure () { cpan_do_compile () { if [ "${IS_NEW_PERL}" = "yes" ]; then - oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD=${TARGET_SYS}-gcc + oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}" else # You must use gcc to link on sh OPTIONS=""