git: 752cebc74dc2 - main - science/simgrid: fix build on powerpc by disabling LTO due to OOM

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:41 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=752cebc74dc254096467a3e04ae0a3a700c97440

commit 752cebc74dc254096467a3e04ae0a3a700c97440
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-08 23:05:46 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:44 +0000

    science/simgrid: fix build on powerpc by disabling LTO due to OOM
    
    While here, remove outdated comment.
---
 science/simgrid/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/science/simgrid/Makefile b/science/simgrid/Makefile
index 8762787ffdda..89b851b2afef 100644
--- a/science/simgrid/Makefile
+++ b/science/simgrid/Makefile
@@ -29,7 +29,11 @@ CMAKE_OFF=	enable_python
 
 LDFLAGS+=	/usr/lib/liblzma.so # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237919
 
-# it'll probably break on gcc-based systems, see https://framagit.org/simgrid/simgrid/issues/12, it'll need CMAKE_OFF=enable_lto and possibly more
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+CMAKE_ARGS+=	-Denable_lto:BOOL=OFF
+.endif
 
 # tests fail, see https://github.com/simgrid/simgrid/issues/384