mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
This ensures that we have .a for libunwind on musl targets, this is used for stack unwinding infra e.g. in rust Help compiling rust compiler and standard library from meta-rust (From OE-Core rev: 37ddab09f0ed9b532fb9ac57f622c8609121aa65) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
1.1 KiB
BlitzBasic
26 lines
1.1 KiB
BlitzBasic
require libunwind.inc
|
|
|
|
SRC_URI[md5sum] = "06ba9e60d92fd6f55cd9dadb084df19e"
|
|
SRC_URI[sha256sum] = "3f3ecb90e28cbe53fba7a4a27ccce7aad188d3210bb1964a923a731a27a75acb"
|
|
|
|
SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \
|
|
file://Add-AO_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch \
|
|
file://0001-backtrace-Use-only-with-glibc-and-uclibc.patch \
|
|
file://0001-x86-Stub-out-x86_local_resume.patch \
|
|
file://0001-Fix-build-on-mips-musl.patch \
|
|
file://0001-add-knobs-to-disable-enable-tests.patch \
|
|
file://0001-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
|
|
file://libunwind-1.1-x32.patch \
|
|
"
|
|
|
|
SRC_URI_append_libc-musl = " file://musl-header-conflict.patch"
|
|
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"
|
|
|
|
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"
|