summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-07 10:04:15 +0100
committerSam James <sam@gentoo.org>2022-06-07 10:06:06 +0100
commita8fb2bafab98c6c351d8d6754631929986b5c503 (patch)
tree073e8a90883892134c4c7ba3e137c3b538ae0507 /dev-libs/libsigsegv
parentnet-analyzer/macchanger: Stabilize 1.7.0_p5_p4 arm64, #850190 (diff)
downloadgentoo-a8fb2bafab98c6c351d8d6754631929986b5c503.tar.gz
gentoo-a8fb2bafab98c6c351d8d6754631929986b5c503.tar.bz2
gentoo-a8fb2bafab98c6c351d8d6754631929986b5c503.zip
dev-libs/libsigsegv: fix cross-build on sparc
Closes: https://bugs.gentoo.org/833469 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libsigsegv')
-rw-r--r--dev-libs/libsigsegv/libsigsegv-2.14.ebuild9
1 files changed, 8 insertions, 1 deletions
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() {