xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libunwind/libunwind_1.6.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunrequire libunwind.inc
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunSRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \
4*4882a593Smuzhiyun           file://0003-x86-Stub-out-x86_local_resume.patch \
5*4882a593Smuzhiyun           file://0004-Fix-build-on-mips-musl.patch \
6*4882a593Smuzhiyun           file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
7*4882a593Smuzhiyun           file://0006-Fix-for-X32.patch \
8*4882a593Smuzhiyun           "
9*4882a593SmuzhiyunSRC_URI:append:libc-musl = " file://musl-header-conflict.patch"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunEXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# http://errors.yoctoproject.org/Errors/Details/20487/
16*4882a593SmuzhiyunARM_INSTRUCTION_SET:armv4 = "arm"
17*4882a593SmuzhiyunARM_INSTRUCTION_SET:armv5 = "arm"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunCOMPATIBLE_HOST:riscv32 = "null"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunLDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunSECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
24*4882a593SmuzhiyunCACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"
25