diff options
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind_1.6.2.bb')
-rw-r--r-- | meta/recipes-support/libunwind/libunwind_1.6.2.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind_1.6.2.bb b/meta/recipes-support/libunwind/libunwind_1.6.2.bb new file mode 100644 index 0000000000..c7b1604b61 --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind_1.6.2.bb | |||
@@ -0,0 +1,50 @@ | |||
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 += "libatomic-ops" | ||
7 | DEPENDS:append:libc-musl = " libucontext" | ||
8 | |||
9 | SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \ | ||
10 | file://mips-byte-order.patch \ | ||
11 | file://mips-coredump-register.patch \ | ||
12 | file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \ | ||
13 | file://0001-src-Gtrace-remove-unguarded-print-calls.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976" | ||
17 | |||
18 | inherit autotools multilib_header | ||
19 | |||
20 | COMPATIBLE_HOST:riscv32 = "null" | ||
21 | |||
22 | PACKAGECONFIG ??= "" | ||
23 | PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz" | ||
24 | PACKAGECONFIG[zlib] = "--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib" | ||
25 | PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native" | ||
26 | |||
27 | EXTRA_OECONF = "--enable-static" | ||
28 | |||
29 | # http://errors.yoctoproject.org/Errors/Details/20487/ | ||
30 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
31 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
32 | |||
33 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
34 | |||
35 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" | ||
36 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" | ||
37 | |||
38 | do_install:append () { | ||
39 | oe_multilib_header libunwind.h | ||
40 | } | ||
41 | |||
42 | BBCLASSEXTEND = "native" | ||
43 | |||
44 | # http://errors.yoctoproject.org/Errors/Build/183144/ | ||
45 | # libunwind-1.6.2/include/tdep-aarch64/libunwind_i.h:123:47: error: passing argument 1 of '_ULaarch64_uc_addr' from incompatible pointer type [-Wincompatible-pointer-types] | ||
46 | # libunwind-1.6.2/src/aarch64/Ginit.c:348:28: error: initialization of 'unw_tdep_context_t *' from incompatible pointer type 'ucontext_t *' [-Wincompatible-pointer-types] | ||
47 | # libunwind-1.6.2/src/aarch64/Ginit.c:377:28: error: initialization of 'unw_tdep_context_t *' from incompatible pointer type 'ucontext_t *' [-Wincompatible-pointer-types] | ||
48 | # libunwind-1.6.2/src/aarch64/Ginit_local.c:51:9: error: assignment to 'ucontext_t *' from incompatible pointer type 'unw_context_t *' {aka 'unw_tdep_context_t *'} [-Wincompatible-pointer-types] | ||
49 | # libunwind-1.6.2/src/aarch64/Gresume.c:37:28: error: initialization of 'unw_tdep_context_t *' from incompatible pointer type 'ucontext_t *' [-Wincompatible-pointer-types] | ||
50 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||