summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-03-11 22:21:05 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-14 16:33:59 +0000
commit9952e546e1c8bcbdb0c8db243829751883816603 (patch)
tree8b19da7a331c8748beea97d80582d7670f7c2ab8 /meta
parent7beff2f9427a00f5a1e344d1e65ad8e43865f8dc (diff)
downloadpoky-9952e546e1c8bcbdb0c8db243829751883816603.tar.gz
libunwind: Do not assume libdir for ppc64
This ensures that build respects OE's choice for libdir (From OE-Core rev: 715a3860f728d08b0a9575690049553c7b8dd65a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/libunwind/libunwind/0001-configure-Do-not-enforce-libdir-for-ppc64.patch35
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.5.0.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind/0001-configure-Do-not-enforce-libdir-for-ppc64.patch b/meta/recipes-support/libunwind/libunwind/0001-configure-Do-not-enforce-libdir-for-ppc64.patch
new file mode 100644
index 0000000000..751f1b3404
--- /dev/null
+++ b/meta/recipes-support/libunwind/libunwind/0001-configure-Do-not-enforce-libdir-for-ppc64.patch
@@ -0,0 +1,35 @@
1From 154c7465de2aeb9a8ba3416bbed6e6e07f58c583 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 11 Mar 2021 21:52:28 -0800
4Subject: [PATCH] configure: Do not enforce libdir for ppc64
5
6OE has its own multilib configuration, therefore hardcoding libdir
7breaks that, instead respect the settings coming from build environment
8via configure options.
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 6 ------
14 1 file changed, 6 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index c8d68f7..254440f 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -206,12 +206,6 @@ fi
21 AM_CONDITIONAL(USE_DWARF, [test x$use_dwarf = xyes])
22 AC_MSG_RESULT([$use_dwarf])
23
24-if test x$target_arch = xppc64; then
25- libdir='${exec_prefix}/lib64'
26- AC_MSG_NOTICE([PowerPC64 detected, lib will be installed ${libdir}]);
27- AC_SUBST([libdir])
28-fi
29-
30 AC_MSG_CHECKING([whether to restrict build to remote support])
31 if test x$target_arch != x$host_arch; then
32 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
33--
342.30.2
35
diff --git a/meta/recipes-support/libunwind/libunwind_1.5.0.bb b/meta/recipes-support/libunwind/libunwind_1.5.0.bb
index 5e4693e205..887a35708e 100644
--- a/meta/recipes-support/libunwind/libunwind_1.5.0.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.5.0.bb
@@ -6,6 +6,7 @@ SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV
6 file://0004-Fix-build-on-mips-musl.patch \ 6 file://0004-Fix-build-on-mips-musl.patch \
7 file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \ 7 file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
8 file://0006-Fix-for-X32.patch \ 8 file://0006-Fix-for-X32.patch \
9 file://0001-configure-Do-not-enforce-libdir-for-ppc64.patch \
9 " 10 "
10SRC_URI_append_libc-musl = " file://musl-header-conflict.patch" 11SRC_URI_append_libc-musl = " file://musl-header-conflict.patch"
11 12