perl 5.8.7: Simplify the addition of patches to support gcc for linking and
authorJamie Lenehan <lenehan@twibble.org>
Thu, 5 Apr 2007 06:52:55 +0000 (06:52 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Thu, 5 Apr 2007 06:52:55 +0000 (06:52 +0000)
using PIC for compiling shared libraries.

packages/perl/perl_5.8.7.bb

index 69b5784..874c95a 100644 (file)
@@ -16,14 +16,13 @@ SRC_URI += "file://config.sh-armeb-linux \
            file://config.sh-sh3-linux \
            file://config.sh-sh4-linux"
 
-# Patches for sh3/sh4, use gcc to link and override generaet.sh to
-# use PIC mode for compiling shared library objects.
-SRC_URI_append_sh4 += "file://override-generate-sh.patch;patch=1"
-SRC_URI_append_sh4 += "file://makefile-usegcc-to-link.patch;patch=1"
-SRC_URI_append_sh3 += "file://override-generate-sh.patch;patch=1"
-SRC_URI_append_sh3 += "file://makefile-usegcc-to-link.patch;patch=1"
-SRC_URI_append_powerpc += "file://override-generate-sh.patch;patch=1"
-SRC_URI_append_powerpc += "file://makefile-usegcc-to-link.patch;patch=1"
+# Use gcc to link and use PIC mode for compiling shared libs
+GCCLINK_SRC = "file://override-generate-sh.patch;patch=1 \
+               file://makefile-usegcc-to-link.patch;patch=1"
+
+SRC_URI_append_sh4 += " ${GCCLINK_SRC}"
+SRC_URI_append_sh3 += " ${GCCLINK_SRC}"
+SRC_URI_append_powerpc += " ${GCCLINK_SRC}"
 
 PARALLEL_MAKE = ""