summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-08 00:53:29 +0100
committerSam James <sam@gentoo.org>2023-05-08 00:53:49 +0100
commit570a3e436ff2a642f9470809fdc8ef63ce560494 (patch)
treecbfa3cf461caa1b6c4c31f8d9700f35261de5793 /dev-libs/gmp
parentx11-drivers/xf86-video-dummy: Version bump to 0.4.1 (diff)
downloadgentoo-570a3e436ff2a642f9470809fdc8ef63ce560494.tar.gz
gentoo-570a3e436ff2a642f9470809fdc8ef63ce560494.tar.bz2
gentoo-570a3e436ff2a642f9470809fdc8ef63ce560494.zip
dev-libs/gmp: strip-flags & filter-lto for miscompilation
Miscompiled on arm64 with LTO at least. strip-flags as well because gmp is so brittle (see e.g. the past configure mess). Bug: https://bugs.gentoo.org/889948 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/gmp')
-rw-r--r--dev-libs/gmp/gmp-6.2.1-r2.ebuild5
-rw-r--r--dev-libs/gmp/gmp-6.2.1-r5.ebuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 6cabb0d5213b..4fc7e6093e5d 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -66,6 +66,11 @@ src_prepare() {
}
multilib_src_configure() {
+ # Generally a very fragile package
+ strip-flags
+ # Miscompiled with LTO at least on arm64, bug #889948
+ filter-lto
+
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then
diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index a3c223b16e40..48ef9cdfac29 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -94,6 +94,11 @@ src_prepare() {
}
multilib_src_configure() {
+ # Generally a very fragile package
+ strip-flags
+ # Miscompiled with LTO at least on arm64, bug #889948
+ filter-lto
+
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
if [[ ${CHOST} == hppa2.0-* ]] ; then