cpan: Use CCLD for the linking instead of ${TARGET_SYS}-gcc. Without this
authorJamie Lenehan <lenehan@twibble.org>
Fri, 27 Apr 2007 02:22:26 +0000 (02:22 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Fri, 27 Apr 2007 02:22:26 +0000 (02:22 +0000)
native packages break because <buildarch>-gcc doesn't exist, just gcc. CCLD
gets us the correct CC to be used for linking in both cases, so we use that.

classes/cpan.bbclass

index 5243056..00709f7 100644 (file)
@@ -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=""