mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Ubuntu has moved eglibc to /usr/lib/${arch}-linux-gnu and
/lib/${arch}-linux-gnu so we need that to be added to glibpth in
Configure.
Currently we set LD=ld in environment for recipes inheriting native
class. This overrides the LD settings in the Makefiles of perl and
it tries to link by calling ld which does not work since its using
-l<x> on commandline and ubuntu linker seems not to look into
the new location for these libraries. Its better to use gcc for linking
here anyway
[With tweak from Tom Rini to use CCLD, not LD]
(From OE-Core rev: 8ba700a4c593fd52bd01b6272b4c8285a71964f7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5a4d5b9c43
commit
841d084555
|
|
@ -1,11 +1,15 @@
|
|||
--- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000
|
||||
+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000
|
||||
@@ -1240,7 +1240,7 @@
|
||||
Index: perl-5.12.2/Configure
|
||||
===================================================================
|
||||
--- perl-5.12.2.orig/Configure
|
||||
+++ perl-5.12.2/Configure
|
||||
@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib
|
||||
loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
|
||||
|
||||
: general looking path for locating libraries
|
||||
-glibpth="/lib /usr/lib $xlibpth"
|
||||
+glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"
|
||||
glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
|
||||
+test -f /usr/lib/`uname -m`-linux-gnu/libc.so && glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth"
|
||||
test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
|
||||
test -f /shlib/libc.so && glibpth="/shlib $glibpth"
|
||||
test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
|
||||
|
|
|
|||
|
|
@ -4,22 +4,22 @@ SECTION = "libs"
|
|||
LICENSE = "Artistic|GPL"
|
||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||
PR = "r7"
|
||||
PR = "r8"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||
|
||||
SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \
|
||||
file://Configure-multilib.patch;patch=1 \
|
||||
file://perl-configpm-switch.patch;patch=1 \
|
||||
file://Configure-multilib.patch \
|
||||
file://perl-configpm-switch.patch \
|
||||
file://parallel_build_fix_1.patch \
|
||||
file://parallel_build_fix_2.patch \
|
||||
file://parallel_build_fix_3.patch \
|
||||
file://parallel_build_fix_4.patch \
|
||||
file://parallel_build_fix_5.patch \
|
||||
file://parallel_build_fix_6.patch \
|
||||
file://native-nopacklist.patch;patch=1 \
|
||||
file://native-perlinc.patch;patch=1"
|
||||
file://native-nopacklist.patch \
|
||||
file://native-perlinc.patch"
|
||||
|
||||
SRC_URI[md5sum] = "af2df531d46b77fdf0d97eecb03eddb2"
|
||||
SRC_URI[sha256sum] = "cf888340021d5a2d1238bbd9b8b55aaf420a848d46e4d317cb8567f86ceb1022"
|
||||
|
|
@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
|
|||
|
||||
inherit native
|
||||
|
||||
export LD="${CCLD}"
|
||||
|
||||
do_configure () {
|
||||
./Configure \
|
||||
-Dcc="${CC}" \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user