All of lore.kernel.org
 help / color / mirror / Atom feed
* export TARGET_LDFLAGS and native sstate
@ 2014-04-07 15:53 Mike Crowe
  2014-04-07 16:17 ` Chris Larson
  2014-04-07 19:35 ` Khem Raj
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Crowe @ 2014-04-07 15:53 UTC (permalink / raw)
  To: openembedded-core

We're building for both ARM and MIPS-based MACHINEs in a single source
tree. This seems to result in us compiling (or luckily most of the time
resurrecting from sstate-cache) two different versions of all -native
packages due to different base hashes.

It seems that this difference in base hashes is due to the exported
variable TARGET_LDFLAGS being different between the two CPUs:

< export TARGET_LDFLAGS="-Wl,-O1  -Wl,--as-needed"
---
> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"

which in turn is because TARGET_LINK_HASH_STYLE is explicitly set to "sysv"
on MIPS but allowed to be "gnu" on everything else.

Every time I switch back and forth between building ARM-based and
MIPS-based machines the do_populate_sysroot_setscene tasks run for each
required -native recipe.

If I modify native.bbclass to do:

 TARGET_LDFLAGS = "${BUILD_LDFLAGS}"

then the hashes match and this unnecessary sysroot population is avoided.

Is this a sensible thing to be doing? It does mean that TARGET_LDFLAGS
contains a lot of (presumably unnecessary) rpath shenanigans but perhaps
that doesn't matter. :(

Thanks.

Mike.


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

end of thread, other threads:[~2014-04-16  9:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07 15:53 export TARGET_LDFLAGS and native sstate Mike Crowe
2014-04-07 16:17 ` Chris Larson
2014-04-07 16:49   ` Mike Crowe
2014-04-10 16:15     ` Mike Crowe
2014-04-10 17:36       ` Chris Larson
2014-04-10 17:38         ` Denys Dmytriyenko
2014-04-07 19:35 ` Khem Raj
2014-04-16  9:43   ` Mike Crowe

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.