diff options
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind_1.8.1.bb')
| -rw-r--r-- | meta/recipes-support/libunwind/libunwind_1.8.1.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind_1.8.1.bb b/meta/recipes-support/libunwind/libunwind_1.8.1.bb new file mode 100644 index 0000000000..1885da4d09 --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind_1.8.1.bb | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | SUMMARY = "Library for obtaining the call-chain of a program" | ||
| 2 | DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program" | ||
| 3 | HOMEPAGE = "http://www.nongnu.org/libunwind" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f" | ||
| 6 | DEPENDS:append:libc-musl = " libucontext" | ||
| 7 | |||
| 8 | SRC_URI = "https://github.com/libunwind/libunwind/releases/download/v${PV}/${BP}.tar.gz \ | ||
| 9 | file://mips-byte-order.patch \ | ||
| 10 | file://0001-tests-Garm64-test-sve-signal-check-that-SVE-is-prese.patch \ | ||
| 11 | file://0002-coredump-use-glibc-or-musl-register-names-as-appropr.patch \ | ||
| 12 | file://0003-Fixed-miscompilation-of-unw_getcontext-on-ARM.patch \ | ||
| 13 | file://0004-Rework-inline-aarch64-as-for-setcontext.patch \ | ||
| 14 | file://0005-Handle-musl-on-PPC32.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRC_URI[sha256sum] = "ddf0e32dd5fafe5283198d37e4bf9decf7ba1770b6e7e006c33e6df79e6a6157" | ||
| 18 | |||
| 19 | inherit autotools multilib_header | ||
| 20 | |||
| 21 | COMPATIBLE_HOST:riscv32 = "null" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "" | ||
| 24 | PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz" | ||
| 25 | PACKAGECONFIG[zlib] = "--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib" | ||
| 26 | PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native" | ||
| 27 | |||
| 28 | EXTRA_OECONF = "--enable-static" | ||
| 29 | |||
| 30 | # http://errors.yoctoproject.org/Errors/Details/20487/ | ||
| 31 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 32 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 33 | |||
| 34 | LDFLAGS += "-Wl,-z,relro,-z,now" | ||
| 35 | LDFLAGS:append:powerpc:libc-musl = " -latomic" | ||
| 36 | |||
| 37 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" | ||
| 38 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" | ||
| 39 | |||
| 40 | do_install:append () { | ||
| 41 | oe_multilib_header libunwind.h | ||
| 42 | } | ||
| 43 | |||
| 44 | BBCLASSEXTEND = "native" | ||
| 45 | |||
| 46 | # libunwind-1.8.1/src/elfxx.c:205:44: error: passing argument 3 of '_Uppc32_get_func_addr' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 47 | # libunwind-1.8.1/src/elfxx.c:279:52: error: passing argument 3 of '_Uppc32_get_func_addr' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 48 | # and others | ||
| 49 | CFLAGS:append:powerpc:libc-musl = " -Wno-error=incompatible-pointer-types" | ||
