summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/perl/perl.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/perl/perl.inc b/packages/perl/perl.inc
index cda260efcd..9e20ae63e6 100644
--- a/packages/perl/perl.inc
+++ b/packages/perl/perl.inc
@@ -19,11 +19,11 @@ do_compile() {
# 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"
+ OPTIONS="LD=${TARGET_SYS}-gcc"
fi
# You must use gcc to link on powerpc also
if test ${TARGET_ARCH} = "powerpc" ; then
- OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
+ OPTIONS="LD=${TARGET_SYS}-gcc"
fi
oe_runmake perl $OPTIONS