summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind/libunwind_1.8.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind_1.8.1.bb')
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.8.1.bb49
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 @@
1SUMMARY = "Library for obtaining the call-chain of a program"
2DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program"
3HOMEPAGE = "http://www.nongnu.org/libunwind"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f"
6DEPENDS:append:libc-musl = " libucontext"
7
8SRC_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
17SRC_URI[sha256sum] = "ddf0e32dd5fafe5283198d37e4bf9decf7ba1770b6e7e006c33e6df79e6a6157"
18
19inherit autotools multilib_header
20
21COMPATIBLE_HOST:riscv32 = "null"
22
23PACKAGECONFIG ??= ""
24PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
25PACKAGECONFIG[zlib] = "--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib"
26PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native"
27
28EXTRA_OECONF = "--enable-static"
29
30# http://errors.yoctoproject.org/Errors/Details/20487/
31ARM_INSTRUCTION_SET:armv4 = "arm"
32ARM_INSTRUCTION_SET:armv5 = "arm"
33
34LDFLAGS += "-Wl,-z,relro,-z,now"
35LDFLAGS:append:powerpc:libc-musl = " -latomic"
36
37SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
38CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"
39
40do_install:append () {
41 oe_multilib_header libunwind.h
42}
43
44BBCLASSEXTEND = "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
49CFLAGS:append:powerpc:libc-musl = " -Wno-error=incompatible-pointer-types"