Openembedded Core Discussions
 help / color / mirror / Atom feed
* glibc and LDFLAGS
@ 2020-01-18 22:25 Rasmus Villemoes
  2020-01-18 23:32 ` Richard Purdie
  0 siblings, 1 reply; 8+ messages in thread
From: Rasmus Villemoes @ 2020-01-18 22:25 UTC (permalink / raw)
  To: OE Core mailing list

I've added a custom setting to TARGET_LDFLAGS, but then I noticed that
the glibc build ignored that. The glibc do_compile did

 LDFLAGS = ""

for a very long time, with the explanation that "# -Wl,-rpath-link
<staging>/lib in LDFLAGS can cause breakage if another glibc is in
staging". Is that actually still relevant with per-recipe staging?

If that is indeed moot, can we do

         CPPFLAGS="" oe_runconf
 }

+LDFLAGS += "-fuse-ld=bfd"
 do_compile () {
-       # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if
another glibc is in staging
-       LDFLAGS="-fuse-ld=bfd"
        base_do_compile
        echo "Adjust ldd script"
        if [ -n "${RTLDLIST}" ]

?

And if not, at least move the LDFLAGS definition out to recipe level so
"bitbake -e" will show the value actually in effect? (And that would
also allow a .bbappend to tweak glibc's LDFLAGS with my custom setting,
though it's annoying to have to maintain that, so the best is if glibc
can just be built with the global LDFLAGS setting).

Rasmus


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

end of thread, other threads:[~2020-02-03 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-18 22:25 glibc and LDFLAGS Rasmus Villemoes
2020-01-18 23:32 ` Richard Purdie
2020-01-20  7:28   ` [PATCH] glibc: don't ignore global LDFLAGS settings Rasmus Villemoes
2020-01-20  9:23     ` [PATCH v2] " Rasmus Villemoes
2020-01-20 15:42       ` Khem Raj
2020-01-20 15:53         ` Rasmus Villemoes
2020-02-03 18:55         ` Rasmus Villemoes
2020-01-20  7:32   ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox