aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-02-08 23:05:46 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-02-11 11:48:44 +0000
commit752cebc74dc254096467a3e04ae0a3a700c97440 (patch)
treef669a4c0fbf9cbba6ad88c02f16c24119d02c283
parent75c26805ced2ba097d843176818dab41514df751 (diff)
downloadports-752cebc74dc254096467a3e04ae0a3a700c97440.tar.gz
ports-752cebc74dc254096467a3e04ae0a3a700c97440.zip
science/simgrid: fix build on powerpc by disabling LTO due to OOM
While here, remove outdated comment.
-rw-r--r--science/simgrid/Makefile6
1 files changed, 5 insertions, 1 deletions
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