]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gdb: Fix occasional build failure
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Mar 2023 15:14:23 +0000 (15:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Mar 2023 10:44:54 +0000 (10:44 +0000)
commit74077e10e2212349493ecfa8e7d9ca844366331f
treedc85aa0b77726f818f305a9751a445086e181b94
parentae3b4588d69e534ac8aff136ed44f3975f5a2d4f
gdb: Fix occasional build failure

When running the configure check "checking for ELF support in BFD", LDFLAGS
were not being passed in to libtool. In OE/YP, we need these flags when using
uninative due to the games we play with the dynamic loader.

If a version of libzstd was built against a newer glibc, it would need
newer pthread symbols which it wouldn't find with the system linker. At
runtime this isn't an issue as it would be switched to use uninative but we
pass flags in LDFLAGS to allow this.

The bug is rare to reproduce as it depends on the host libzstd was built
against.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/gdb/gdb.inc
meta/recipes-devtools/gdb/gdb/add-missing-ldflags.patch [new file with mode: 0644]