All of lore.kernel.org
 help / color / mirror / Atom feed
* How to apply "-Wl,--build-id" in all recipes?
@ 2014-08-04  0:53 Changhyeok Bae
  2014-08-04  3:08 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Changhyeok Bae @ 2014-08-04  0:53 UTC (permalink / raw)
  To: openembedded-devel

Hi

I would like to apply "-Wl,--build-id" in all recipes option when I build a
image.
I tried to write TARGET_LDFLAGS += "-Wl,--build-d" and BUILD_LDFLAGS +=
"-Wl,--build-d" in local.conf.
But it's not applied.

Do you have any idea?

Thanks



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to apply "-Wl,--build-id" in all recipes?
  2014-08-04  0:53 How to apply "-Wl,--build-id" in all recipes? Changhyeok Bae
@ 2014-08-04  3:08 ` Khem Raj
  2014-08-04  4:46   ` Changhyeok Bae
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2014-08-04  3:08 UTC (permalink / raw)
  To: openembedded-devel

On 14-08-04 09:53:12, Changhyeok Bae wrote:
> Hi
> 
> I would like to apply "-Wl,--build-id" in all recipes option when I build a
> image.
> I tried to write TARGET_LDFLAGS += "-Wl,--build-d" and BUILD_LDFLAGS +=
> "-Wl,--build-d" in local.conf.
> But it's not applied.
> 
> Do you have any idea?

Did you do it in local.conf or some other global config data files ?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to apply "-Wl,--build-id" in all recipes?
  2014-08-04  3:08 ` Khem Raj
@ 2014-08-04  4:46   ` Changhyeok Bae
  2014-08-09 18:22     ` Christopher Larson
  0 siblings, 1 reply; 5+ messages in thread
From: Changhyeok Bae @ 2014-08-04  4:46 UTC (permalink / raw)
  To: openembedded-devel

As I said, I applied the variable in local.conf.
The LDFLAGS env. variable is included '-Wl,--build-id'.
However, the variable is not applied at the linking time.

Thanks

-----Original Message-----
From: openembedded-devel-bounces@lists.openembedded.org
[mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Khem
Raj
Sent: Monday, August 04, 2014 12:08 PM
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] How to apply "-Wl,--build-id" in all recipes?

On 14-08-04 09:53:12, Changhyeok Bae wrote:
> Hi
> 
> I would like to apply "-Wl,--build-id" in all recipes option when I 
> build a image.
> I tried to write TARGET_LDFLAGS += "-Wl,--build-d" and BUILD_LDFLAGS 
> += "-Wl,--build-id" in local.conf.
> But it's not applied.
> 
> Do you have any idea?

Did you do it in local.conf or some other global config data files ?
--
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to apply "-Wl,--build-id" in all recipes?
  2014-08-04  4:46   ` Changhyeok Bae
@ 2014-08-09 18:22     ` Christopher Larson
  2014-08-11  9:08       ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Larson @ 2014-08-09 18:22 UTC (permalink / raw)
  To: Openembedded Discussion

On Sun, Aug 3, 2014 at 9:46 PM, Changhyeok Bae <changhyeok.bae@lge.com>
wrote:

> As I said, I applied the variable in local.conf.
> The LDFLAGS env. variable is included '-Wl,--build-id'.
> However, the variable is not applied at the linking time.
>

All recipes *should* ensure that the buildsystem of what they're building
obeys our LDFLAGS, but plenty do not. We used to spot these cases via the
GNU_HASH warnings, but now we build the internal toolchain with the default
gnu hash so cases where LDFLAGS isn't being obeyed are slightly more
difficult to detect unless you'er building with an external toolchain.
There are some fixes for such issues floating around in the meta-sourcery
repository until I get time to push them. So I expect it's a case by case
thing. It should be applied for most things, but it's possible that it
doesn't in others, and it'd be a bug in the cases where it isn't.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to apply "-Wl,--build-id" in all recipes?
  2014-08-09 18:22     ` Christopher Larson
@ 2014-08-11  9:08       ` Paul Eggleton
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2014-08-11  9:08 UTC (permalink / raw)
  To: Christopher Larson; +Cc: openembedded-devel

Hi Chris,

On Saturday 09 August 2014 11:22:11 Christopher Larson wrote:
> On Sun, Aug 3, 2014 at 9:46 PM, Changhyeok Bae <changhyeok.bae@lge.com>
> wrote:
> > As I said, I applied the variable in local.conf.
> > The LDFLAGS env. variable is included '-Wl,--build-id'.
> > However, the variable is not applied at the linking time.
> 
> All recipes *should* ensure that the buildsystem of what they're building
> obeys our LDFLAGS, but plenty do not. We used to spot these cases via the
> GNU_HASH warnings, but now we build the internal toolchain with the default
> gnu hash so cases where LDFLAGS isn't being obeyed are slightly more
> difficult to detect unless you'er building with an external toolchain.

Hmm, when did this change? I was sure we still got this warning if the OE 
LDFLAGS weren't used...

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-11  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04  0:53 How to apply "-Wl,--build-id" in all recipes? Changhyeok Bae
2014-08-04  3:08 ` Khem Raj
2014-08-04  4:46   ` Changhyeok Bae
2014-08-09 18:22     ` Christopher Larson
2014-08-11  9:08       ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.