From: Tom Rini <tom_rini@mentor.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Date: Mon, 21 Mar 2011 14:40:58 -0700 [thread overview]
Message-ID: <4D87C5EA.1040602@mentor.com> (raw)
In-Reply-To: <c9c4958668d457bef286c0c1e4038db23fc099c2.1300731672.git.raj.khem@gmail.com>
On 03/21/2011 11:23 AM, Khem Raj wrote:
> 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
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
> .../perl/files/Configure-multilib.patch | 10 +++++++---
> meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++-
> 2 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-devtools/perl/files/Configure-multilib.patch b/meta/recipes-devtools/perl/files/Configure-multilib.patch
> index d3948a9..b561b6a 100644
> --- a/meta/recipes-devtools/perl/files/Configure-multilib.patch
> +++ b/meta/recipes-devtools/perl/files/Configure-multilib.patch
> @@ -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"
> diff --git a/meta/recipes-devtools/perl/perl-native_5.12.2.bb b/meta/recipes-devtools/perl/perl-native_5.12.2.bb
> index 9af7b06..6776aed 100644
> --- a/meta/recipes-devtools/perl/perl-native_5.12.2.bb
> +++ b/meta/recipes-devtools/perl/perl-native_5.12.2.bb
> @@ -4,7 +4,7 @@ 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"
> @@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
>
> inherit native
>
> +export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually
just ends up as CC, but lets be clear please).
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2011-03-21 21:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 18:23 [PATCH 0/1] Fix perl-native compilation on ubuntu 11.04 Khem Raj
2011-03-21 18:23 ` [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha Khem Raj
2011-03-21 21:40 ` Tom Rini [this message]
2011-03-23 12:22 ` Richard Purdie
2011-03-23 15:20 ` Khem Raj
2011-04-29 1:18 ` Gary Thomas
2011-04-29 2:10 ` Khem Raj
2011-04-29 2:42 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D87C5EA.1040602@mentor.com \
--to=tom_rini@mentor.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox