diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/cpan.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index 0b90e754df..f883867a80 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -17,7 +17,12 @@ cpan_do_configure () { } cpan_do_compile () { - oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" + # You must use gcc to link on sh + OPTIONS="" + if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then + OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc" + fi + oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" $OPTIONS } cpan_do_install () { |