]> 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>
Mon, 5 Jun 2017 22:53:48 +0000 (23:53 +0100)
commit793b6e57d7cf4a093223b4cd34085a929a5c43c3
treef5a81cb3f887daf65156c48de9a06af4c473d791
parentfcb2fcae57df403f1fff4b9ddb6b2d52e41aea33
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-1.1/musl-header-conflict.patch [new file with mode: 0644]
meta/recipes-support/libunwind/libunwind_1.1.bb