mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
Functions like unw_getcontext in libunwind call getcontext() which are not part of musl C library like glibc, however there is a supplimental library providing these functions called libucontext, therefore link libunwind with a static version of this library to resolve such symbols, this inturn helps packages needing libunwind, who look for certain APIs in libunwind during configure e.g. heaptrack (From OE-Core rev: 824c07d1cf2d1574dfe8f395af37479064782426) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
1.2 KiB
BlitzBasic
29 lines
1.2 KiB
BlitzBasic
require libunwind.inc
|
|
|
|
SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \
|
|
file://0001-Add-AO_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch \
|
|
file://0003-x86-Stub-out-x86_local_resume.patch \
|
|
file://0004-Fix-build-on-mips-musl.patch \
|
|
file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
|
|
file://0006-Fix-for-X32.patch \
|
|
file://0001-configure-Do-not-enforce-libdir-for-ppc64.patch \
|
|
"
|
|
SRC_URI_append_libc-musl = " file://musl-header-conflict.patch"
|
|
|
|
SRC_URI[md5sum] = "c6923dda0675f6a4ef21426164dc8b6a"
|
|
SRC_URI[sha256sum] = "90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017"
|
|
|
|
EXTRA_OECONF_append_libc-musl = " --disable-documentation --disable-tests --enable-static"
|
|
|
|
# http://errors.yoctoproject.org/Errors/Details/20487/
|
|
ARM_INSTRUCTION_SET_armv4 = "arm"
|
|
ARM_INSTRUCTION_SET_armv5 = "arm"
|
|
|
|
COMPATIBLE_HOST_riscv64 = "null"
|
|
COMPATIBLE_HOST_riscv32 = "null"
|
|
|
|
LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
|
|
|
|
SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared"
|
|
CACHED_CONFIGUREVARS_append_libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"
|