From ec3923063f9213dc793141bf6dfb6ddcfbfd5652 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Tue, 3 Oct 2006 20:53:58 +0000 Subject: perl: Another sh3/sh4 shared library fix. Modules build built with cpan.bbclass were being linked using ld instead of gcc, which often breaks on sh. Override the LD settings so any cpan modules that compile c/c++ code use gcc to link. Bump the PR on the effected modules. --- classes/cpan.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'classes') 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 () { -- cgit v1.2.3