summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@gentoo.org>2024-10-11 01:22:44 -0400
committerEli Schwartz <eschwartz@gentoo.org>2024-10-14 01:27:11 -0400
commitc316d7e2bbe573c43b1ea26751da5a48f14a0c3c (patch)
tree66c396f7cda63c260ba79fd68b6c96e4b67313c0 /dev-lang/mercury
parentdev-perl/MCE: add 1.900.0 (diff)
downloadgentoo-c316d7e2bbe573c43b1ea26751da5a48f14a0c3c.tar.gz
gentoo-c316d7e2bbe573c43b1ea26751da5a48f14a0c3c.tar.bz2
gentoo-c316d7e2bbe573c43b1ea26751da5a48f14a0c3c.zip
dev-lang/mercury: mark as LTO-unsafe
It is using global register variables, and there's a GCC bug that makes this not work with lto. Closes: https://bugs.gentoo.org/924767 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'dev-lang/mercury')
-rw-r--r--dev-lang/mercury/mercury-22.01.1-r1.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-lang/mercury/mercury-22.01.1-r1.ebuild b/dev-lang/mercury/mercury-22.01.1-r1.ebuild
index d992abd8eb01..965d58b1c65e 100644
--- a/dev-lang/mercury/mercury-22.01.1-r1.ebuild
+++ b/dev-lang/mercury/mercury-22.01.1-r1.ebuild
@@ -51,6 +51,11 @@ src_prepare() {
src_configure() {
strip-flags
+ # machdeps/x86_64_regs.h:37:25: error: global register variable follows a function definition
+ # https://bugs.gentoo.org/924767
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68384
+ filter-lto
+
local myconf
myconf="--libdir=/usr/$(get_libdir) \
$(use_enable mono csharp-grade) \