From: Tom Rini <tom_rini@mentor.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.
Date: Mon, 14 Mar 2011 09:50:06 -0700 [thread overview]
Message-ID: <4D7E473E.6010800@mentor.com> (raw)
In-Reply-To: <1299934200.1445.3023.camel@rex>
On 03/12/2011 05:50 AM, Richard Purdie wrote:
> On Tue, 2011-03-08 at 11:04 -0800, Khem Raj wrote:
>> On Tue, Mar 8, 2011 at 10:53 AM, Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>>> On Mon, 2011-03-07 at 22:38 -0800, Khem Raj wrote:
>>>> ping any opinion on this patch ?
>>>
>>> This change looks rather hacky and I'd really like to understand more
>>> about why this is needed and whether there is a better way we could
>>> ensure the right flags get passed around. Can you provide more details
>>> about whats going on with this. Obviously this change as it stands isn't
>>> acceptable to upstream gcc and I'd like to see if we could find one that
>>> was.
>>
>> this is because the supporting libraries like mpc mpfr that are needed
>> by gcc itself to run
>> we might have different versions of these libraries. So depending upon
>> shared objects
>> would mean we need to find same shared objects where say the SDK is installed
>> so either we ship the whole baggage or we link it in statically. This
>> patch makes those libs to
>> linked in statically and cross gcc wont have dependencies on these
>> libs anymore so
>> it can run on all hosts pretty much.
>
> If you look at the way the SDK toolchain works in Poky, it automatically
> ships the versions of these libraries that it needs so we don't actually
> have this problem.
>
> Also, looking at the patch again, was the first LDFLAGS change meant to
> be in there, is that related or different to the shared/static
> mpfr/mpc/gmp issue?
I think it's time for someone to build one at dig at it, but are you
sure they're used and shipped and not just used? That was a problem
before and unless the exported bits are using a relative $ORIGIN in the
link path (or we've broken relocatability, which would be another
problem) there's problems today.
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2011-03-14 16:52 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 6:52 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
2011-03-03 6:52 ` [PATCHv3 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-03 6:52 ` [PATCHv3 2/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-08 6:39 ` Khem Raj
2011-03-08 18:51 ` Richard Purdie
2011-03-03 6:52 ` [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
2011-03-08 6:38 ` Khem Raj
2011-03-08 18:53 ` Richard Purdie
2011-03-08 19:04 ` Khem Raj
2011-03-12 12:50 ` Richard Purdie
2011-03-14 16:50 ` Tom Rini [this message]
2011-03-14 19:54 ` Richard Purdie
2011-03-15 17:33 ` Tom Rini
2011-03-16 13:27 ` Richard Purdie
2011-03-16 17:17 ` Tom Rini
2011-03-14 17:52 ` Khem Raj
2011-03-14 18:01 ` Richard Purdie
2011-03-14 18:42 ` Khem Raj
2011-03-03 6:52 ` [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-03 7:15 ` Martin Jansa
2011-03-03 12:13 ` Richard Purdie
2011-03-03 15:48 ` Khem Raj
2011-03-03 6:52 ` [PATCHv3 5/6] poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2" Khem Raj
2011-03-08 6:39 ` Khem Raj
2011-03-08 18:48 ` Richard Purdie
2011-03-03 6:52 ` [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native Khem Raj
2011-03-03 12:07 ` Richard Purdie
2011-03-03 12:43 ` Koen Kooi
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=4D7E473E.6010800@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