summaryrefslogtreecommitdiff
path: root/packages/perl/perl.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/perl/perl.inc')
-rw-r--r--packages/perl/perl.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/perl/perl.inc b/packages/perl/perl.inc
index ad0562d3a4..4cddcdb18a 100644
--- a/packages/perl/perl.inc
+++ b/packages/perl/perl.inc
@@ -41,7 +41,12 @@ do_configure() {
do_compile() {
sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL
cd Cross
- oe_runmake perl
+ # 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 perl $OPTIONS
}
do_install() {