commit:     b0f66d83976eedc5f6dc6a37c2296a95d063f9c8
Author:     Keri Harris <keri <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 14 16:09:21 2020 +0000
Commit:     Keri Harris <keri <AT> gentoo <DOT> org>
CommitDate: Mon Sep 14 16:09:40 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0f66d83

dev-lang/mercury: avoid ICE when compiling Mercury trail grades

Package-Manager: Portage-3.0.4, Repoman-2.3.22
Signed-off-by: Keri Harris <keri <AT> gentoo.org>

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

diff --git a/dev-lang/mercury/mercury-20.06.ebuild 
b/dev-lang/mercury/mercury-20.06.ebuild
index 0eb603a4882..3757ae56109 100644
--- a/dev-lang/mercury/mercury-20.06.ebuild
+++ b/dev-lang/mercury/mercury-20.06.ebuild
@@ -68,6 +68,11 @@ src_compile() {
        echo "EXTRA_LD_LIBFLAGS = ${LDFLAGS}" >> Mmake.params
        echo "EXTRA_MLFLAGS = --no-strip" >> Mmake.params
 
+       if use trail; then
+               echo "CFLAGS-int = -O0" >> Mmake.params
+               echo "CFLAGS-uint = -O0" >> Mmake.params
+       fi
+
        echo "EXTRA_LD_LIBFLAGS += -Wl,-soname=libgc.so" >> 
boehm_gc/Mmake.boehm_gc.params
        echo "EXTRA_LD_LIBFLAGS += -Wl,-soname=libmer_rt.so" >> 
runtime/Mmake.runtime.params
        echo "EXTRA_LD_LIBFLAGS += -Wl,-soname=libmer_std.so" >> 
library/Mmake.library.params

Reply via email to