summaryrefslogtreecommitdiff
path: root/packages/perl/perl.inc
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2007-04-03 23:21:39 +0000
committerJamie Lenehan <lenehan@twibble.org>2007-04-03 23:21:39 +0000
commit55dfa6d977ef935a30191ab09e0c377f794baaa8 (patch)
tree8f0f8c1f63d544565963ce9a5b6b9d94701d17f7 /packages/perl/perl.inc
parent79c1321ceef5a08e82736001150252908a9c7d5b (diff)
perl: Fix perl build for sh3/sh4. The recent change to support powerpc was
wiping out the options that were set for sh3/sh4 - we only need to init the OPTIONS once.
Diffstat (limited to 'packages/perl/perl.inc')
-rw-r--r--packages/perl/perl.inc11
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/perl/perl.inc b/packages/perl/perl.inc
index f063d0e403..64e548a121 100644
--- a/packages/perl/perl.inc
+++ b/packages/perl/perl.inc
@@ -46,13 +46,10 @@ do_compile() {
if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then
OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
fi
-
- # You must use gcc to link on powerpc also
- OPTIONS=""
- if test ${TARGET_ARCH} = "powerpc" ; then
- OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
- fi
-
+ # You must use gcc to link on powerpc also
+ if test ${TARGET_ARCH} = "powerpc" ; then
+ OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
+ fi
oe_runmake perl $OPTIONS
}