How to apply "-Wl,--build-id" in all recipes?
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
Quoted 9 lines · Changhyeok Bae
Hi
I would like to apply "-Wl,--build-id" in all recipes option when I build a image.
I tried to writeTARGET_LDFLAGS+= "-Wl,--build-d" andBUILD_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 ?
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: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Monday, August 04, 2014 12:08 PM
To: [email protected]
Subject: Re: [oe] How to apply "-Wl,--build-id" in all recipes?
Quoted 9 lines · Changhyeok Bae
Hi
I would like to apply "-Wl,--build-id" in all recipes option when I build a image.
I tried to writeTARGET_LDFLAGS+= "-Wl,--build-d" andBUILD_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 [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 4 lines · Changhyeok Bae
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.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Hi Chris,
Quoted 11 lines · On Saturday 09 August 2014 11:22:11 Christopher Larson wrote:
Quoted 3 lines · Changhyeok Bae
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_HASHwarnings, 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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre