blob: 716be9a452f454a4ed7138dedfab14633bb1e2a8 [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 \
8 "
9SRC_URI:append:libc-musl = " file://musl-header-conflict.patch"
10
11SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976"
12
13EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static"
14
15# http://errors.yoctoproject.org/Errors/Details/20487/
16ARM_INSTRUCTION_SET:armv4 = "arm"
17ARM_INSTRUCTION_SET:armv5 = "arm"
18
19COMPATIBLE_HOST:riscv32 = "null"
20
21LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
22
23SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
24CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"