Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 1 | require libunwind.inc |
| 2 | |
| 3 | SRC_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 | " |
| 9 | SRC_URI:append:libc-musl = " file://musl-header-conflict.patch" |
| 10 | |
| 11 | SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976" |
| 12 | |
| 13 | EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static" |
| 14 | |
| 15 | # http://errors.yoctoproject.org/Errors/Details/20487/ |
| 16 | ARM_INSTRUCTION_SET:armv4 = "arm" |
| 17 | ARM_INSTRUCTION_SET:armv5 = "arm" |
| 18 | |
| 19 | COMPATIBLE_HOST:riscv32 = "null" |
| 20 | |
| 21 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 22 | |
| 23 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" |
| 24 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" |