summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-05-09 07:16:06 +0000
committerLars Wendler <polynomial-c@gentoo.org>2021-05-11 10:44:37 +0200
commit8a3c82d2c1bac689e848c65dc0ad53e4cdd6fc7a (patch)
tree3beec7f8a90afa10c37271ead9f9ca73123d5264 /dev-libs
parentdev-python/configargparse: Bump to 1.4.1 (diff)
downloadgentoo-8a3c82d2c1bac689e848c65dc0ad53e4cdd6fc7a.tar.gz
gentoo-8a3c82d2c1bac689e848c65dc0ad53e4cdd6fc7a.tar.bz2
gentoo-8a3c82d2c1bac689e848c65dc0ad53e4cdd6fc7a.zip
dev-libs/apr: fix underlinking for atomics on ppc, sparc
Fixes errors in the produced library like: > undefined reference to `__sync_val_compare_and_swap_8' Forcing linkage against libatomic didn't work. May be worth investigation in future but need to get ppc and sparc working again. Closes: https://bugs.gentoo.org/740464 Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/20735 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/apr/apr-1.6.3-r5.ebuild (renamed from dev-libs/apr/apr-1.6.3-r4.ebuild)8
-rw-r--r--dev-libs/apr/apr-1.6.5-r2.ebuild (renamed from dev-libs/apr/apr-1.6.5-r1.ebuild)8
-rw-r--r--dev-libs/apr/apr-1.7.0-r2.ebuild (renamed from dev-libs/apr/apr-1.7.0-r1.ebuild)8
3 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/apr/apr-1.6.3-r4.ebuild b/dev-libs/apr/apr-1.6.3-r5.ebuild
index ce047e457b5f..977176aee5c6 100644
--- a/dev-libs/apr/apr-1.6.3-r4.ebuild
+++ b/dev-libs/apr/apr-1.6.3-r5.ebuild
@@ -109,6 +109,14 @@ src_configure() {
myconf+=( --disable-nonportable-atomics )
;;
esac
+ else
+ if use ppc || use sparc; then
+ # Avoid libapr containing undefined references (underlinked)
+ # undefined reference to `__sync_val_compare_and_swap_8'
+ # (May be possible to fix via libatomic linkage in future?)
+ # bug #740464
+ myconf+=( --disable-nonportable-atomics )
+ fi
fi
econf "${myconf[@]}"
diff --git a/dev-libs/apr/apr-1.6.5-r1.ebuild b/dev-libs/apr/apr-1.6.5-r2.ebuild
index 2e6c0d4627e7..c7f60001d874 100644
--- a/dev-libs/apr/apr-1.6.5-r1.ebuild
+++ b/dev-libs/apr/apr-1.6.5-r2.ebuild
@@ -108,6 +108,14 @@ src_configure() {
myconf+=( --disable-nonportable-atomics )
;;
esac
+ else
+ if use ppc || use sparc; then
+ # Avoid libapr containing undefined references (underlinked)
+ # undefined reference to `__sync_val_compare_and_swap_8'
+ # (May be possible to fix via libatomic linkage in future?)
+ # bug #740464
+ myconf+=( --disable-nonportable-atomics )
+ fi
fi
econf "${myconf[@]}"
diff --git a/dev-libs/apr/apr-1.7.0-r1.ebuild b/dev-libs/apr/apr-1.7.0-r2.ebuild
index ec551265391b..8a231aa627f6 100644
--- a/dev-libs/apr/apr-1.7.0-r1.ebuild
+++ b/dev-libs/apr/apr-1.7.0-r2.ebuild
@@ -109,6 +109,14 @@ src_configure() {
myconf+=( --disable-nonportable-atomics )
;;
esac
+ else
+ if use ppc || use sparc; then
+ # Avoid libapr containing undefined references (underlinked)
+ # undefined reference to `__sync_val_compare_and_swap_8'
+ # (May be possible to fix via libatomic linkage in future?)
+ # bug #740464
+ myconf+=( --disable-nonportable-atomics )
+ fi
fi
econf "${myconf[@]}"