Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | require libunwind.inc |
| 2 | |
| 3 | SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \ |
| 4 | file://0001-Add-AO_REQUIRE_CAS-to-fix-build-on-ARM-v6.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | file://0003-x86-Stub-out-x86_local_resume.patch \ |
| 6 | file://0004-Fix-build-on-mips-musl.patch \ |
| 7 | file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \ |
| 8 | file://0006-Fix-for-X32.patch \ |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 9 | file://0001-configure-Do-not-enforce-libdir-for-ppc64.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | SRC_URI:append:libc-musl = " file://musl-header-conflict.patch" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 13 | SRC_URI[md5sum] = "c6923dda0675f6a4ef21426164dc8b6a" |
| 14 | SRC_URI[sha256sum] = "90337653d92d4a13de590781371c604f9031cdb50520366aa1e3a91e1efb1017" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | |
| 18 | # http://errors.yoctoproject.org/Errors/Details/20487/ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 19 | ARM_INSTRUCTION_SET:armv4 = "arm" |
| 20 | ARM_INSTRUCTION_SET:armv5 = "arm" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | COMPATIBLE_HOST:riscv64 = "null" |
| 23 | COMPATIBLE_HOST:riscv32 = "null" |
Andrew Geissler | 9b4d8b0 | 2021-02-19 12:26:16 -0600 | [diff] [blame] | 24 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 25 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" |
| 28 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" |