From a8fb2bafab98c6c351d8d6754631929986b5c503 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 7 Jun 2022 10:04:15 +0100 Subject: dev-libs/libsigsegv: fix cross-build on sparc Closes: https://bugs.gentoo.org/833469 Signed-off-by: Sam James --- dev-libs/libsigsegv/libsigsegv-2.14.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dev-libs/libsigsegv') diff --git a/dev-libs/libsigsegv/libsigsegv-2.14.ebuild b/dev-libs/libsigsegv/libsigsegv-2.14.ebuild index f9110af28dc4..e86eb0345c67 100644 --- a/dev-libs/libsigsegv/libsigsegv-2.14.ebuild +++ b/dev-libs/libsigsegv/libsigsegv-2.14.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools +inherit autotools toolchain-funcs DESCRIPTION="Library for handling page faults in user mode" HOMEPAGE="https://www.gnu.org/software/libsigsegv/" @@ -20,6 +20,13 @@ src_prepare() { src_configure() { econf --enable-shared --disable-static + + if tc-is-cross-compiler && [[ ${CHOST} == sparc64* ]] ; then + # Tries to use fault-linux-sparc-old.h otherwise which is + # for non-POSIX systems. + # bug #833469 + sed -i -e "s:fault-linux-sparc-old.h:fault-linux-sparc.h:" config.status config.h.in config.h || die + fi } src_install() { -- cgit v1.2.3-65-gdbad