summaryrefslogtreecommitdiff
path: root/classes/cpan.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-10-03 20:53:58 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-10-03 20:53:58 +0000
commitec3923063f9213dc793141bf6dfb6ddcfbfd5652 (patch)
tree336cee37c3f01fdaadec30a809c920182ed4cb75 /classes/cpan.bbclass
parentd2b1072b72f80f7d9168c68afcc5f0dc8b4ee8e8 (diff)
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.
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r--classes/cpan.bbclass7
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 () {