]> git.openpandora.org Git - openembedded.git/commitdiff
perl: Another sh3/sh4 shared library fix. Modules build built with
authorJamie Lenehan <lenehan@twibble.org>
Tue, 3 Oct 2006 20:53:58 +0000 (20:53 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Tue, 3 Oct 2006 20:53:58 +0000 (20:53 +0000)
cpan.bbclass were being linked using ld instead of gcc, which often
breaks on sh. Override the LD settings so any cpan modules that
compile c/c++ code use gcc to link. Bump the PR on the effected
modules.

classes/cpan.bbclass
packages/perl/libcompress-zlib-perl_1.42.bb
packages/perl/libdigest-sha1-perl_2.11.bb
packages/perl/libipc-sharelite-perl_0.09.bb
packages/perl/liblocale-gettext-perl_1.05.bb
packages/perl/libparams-validate-perl_0.86.bb

index 0b90e754df8b9758436e575b3e39400752cc018b..f883867a80819459866d01f0653b717176f92319 100644 (file)
@@ -17,7 +17,12 @@ cpan_do_configure () {
 }
 
 cpan_do_compile () {
-        oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}"
+       # 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 PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" $OPTIONS
 }
 
 cpan_do_install () {
index dfbfdb56338ee8e7d3fb52efdcde0b1604db2c9a..0c8dd3c612113b8c4b98d98305bce4299ce68eaf 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Compress::Zlib - Interface to zlib compression library"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "Artistic|GPL"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-1.42.tar.gz"
 
index 9d4011065375d0f3f9df9f09c09809e8f2aa049c..ea79dc4e1027feea098defd1b169f5e65db09b3b 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Digest::SHA1 - Perl interface to the SHA-1 algorithm"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "Artistic|GPL"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.11.tar.gz"
 
index 39808423a4c89e9618baf5bb1e70ef9c16134982..75f45330354aa89f6025befb1d940ac9e8ff30b6 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "IPC::ShareLite - Light-weight interface to shared memory"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "Artistic|GPL"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MAURICE/IPC-ShareLite-0.09.tar.gz"
 
index 0f98e9bde0eaa7f2d15184015ee887ca9f0e7e97..c26755d5d9500a522b113ea24522e8eef7e899fd 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "Artistic|GPL"
 DEPENDS = "virtual/libintl"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz"
 
index 55bbe54d0e42aa30f28089e82fb54eb2b4135839..30ba19fb6d6152a2cb2523c946b3fdbc2b618d9e 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Params::Validate - Validate method/function parameters"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "Artistic|GPL"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-0.86.tar.gz"