]> code.ossystems Code Review - openembedded-core.git/commit
libunwind: Fix build race conflict with gcc and musl
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Aug 2016 13:46:32 +0000 (14:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Aug 2016 09:23:31 +0000 (10:23 +0100)
commitcd8b64b0a236b27e5383e2394de65b9bfd4b6677
tree695355af1e5e3f2975dc36f8d9507532d3634854
parent5dca6cc2fcdb2799c19b1697f0647a16ce296290
libunwind: Fix build race conflict with gcc and musl

Building libunwind, then gcc-runtime causes build failures. This is hard
to fix since gcc-runtime wants the internal gcc unwind.h header but libunwind
wants to provide this. There are differences in include behaviour between gcc
and glibc which are by design.

This patch hacks around the issue by looking for a define used during gcc-runtime's
build and skipping to the internal header in that case. The patch is only enabled
on musl and is the best workaround I could come up with to unblock failing builds
on our autobuilder.

[YOCTO #10129]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libunwind/libunwind/musl-header-conflict.patch [new file with mode: 0644]
meta/recipes-support/libunwind/libunwind_git.bb