perl: Fix perl build for sh3/sh4. The recent change to support powerpc was
authorJamie Lenehan <lenehan@twibble.org>
Tue, 3 Apr 2007 23:21:39 +0000 (23:21 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Tue, 3 Apr 2007 23:21:39 +0000 (23:21 +0000)
wiping out the options that were set for sh3/sh4 - we only need to init the
OPTIONS once.

packages/perl/perl.inc

index f063d0e..64e548a 100644 (file)
@@ -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
 }