commit:     c316d7e2bbe573c43b1ea26751da5a48f14a0c3c
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 11 05:22:44 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 05:27:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c316d7e2

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 <AT> gentoo.org>

 dev-lang/mercury/mercury-22.01.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

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) \

Reply via email to