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>
This commit is contained in:
Khem Raj
2021-03-11 22:21:05 -08:00
committed by Richard Purdie
parent 7beff2f942
commit 9952e546e1
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
From 154c7465de2aeb9a8ba3416bbed6e6e07f58c583 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 11 Mar 2021 21:52:28 -0800
Subject: [PATCH] configure: Do not enforce libdir for ppc64
OE has its own multilib configuration, therefore hardcoding libdir
breaks that, instead respect the settings coming from build environment
via configure options.
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
configure.ac | 6 ------
1 file changed, 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index c8d68f7..254440f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,12 +206,6 @@ fi
AM_CONDITIONAL(USE_DWARF, [test x$use_dwarf = xyes])
AC_MSG_RESULT([$use_dwarf])
-if test x$target_arch = xppc64; then
- libdir='${exec_prefix}/lib64'
- AC_MSG_NOTICE([PowerPC64 detected, lib will be installed ${libdir}]);
- AC_SUBST([libdir])
-fi
-
AC_MSG_CHECKING([whether to restrict build to remote support])
if test x$target_arch != x$host_arch; then
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
--
2.30.2

View File

@@ -6,6 +6,7 @@ SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV
file://0004-Fix-build-on-mips-musl.patch \
file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \
file://0006-Fix-for-X32.patch \
file://0001-configure-Do-not-enforce-libdir-for-ppc64.patch \
"
SRC_URI_append_libc-musl = " file://musl-header-conflict.patch"