blob: d67862608c1a6df47a4793490fc4f9d10afd859e [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001require libunwind.inc
2
3SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \
4 file://0003-x86-Stub-out-x86_local_resume.patch \
5 file://0004-Fix-build-on-mips-musl.patch \
6 file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
7 file://0006-Fix-for-X32.patch \
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05008 file://0001-src-Gtrace-remove-unguarded-print-calls.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +00009 "
10SRC_URI:append:libc-musl = " file://musl-header-conflict.patch"
11
12SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976"
13
14EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static"
15
16# http://errors.yoctoproject.org/Errors/Details/20487/
17ARM_INSTRUCTION_SET:armv4 = "arm"
18ARM_INSTRUCTION_SET:armv5 = "arm"
19
20COMPATIBLE_HOST:riscv32 = "null"
21
22LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
23
24SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
25CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"