summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2025-05-09 15:35:02 +0200
committerThierry Thomas <thierry@FreeBSD.org>2025-05-09 15:39:16 +0200
commit15619040d794b0162a19575c6ec6ed5d9e00fc04 (patch)
tree7c9ad05a8ddec83c8f0d88fa025fe97b85711ceb
parentmath/e-antic: upgrade to 2.1.0 (diff)
math/manifold: fix on i386
Remove -Werror on 32 bits archs: compilation failed in stl_test.cpp, caused by a format mismatch in printf.
-rw-r--r--math/manifold/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/math/manifold/Makefile b/math/manifold/Makefile
index b0a58d18e12e..f15d9c8f5851 100644
--- a/math/manifold/Makefile
+++ b/math/manifold/Makefile
@@ -34,6 +34,13 @@ CMAKE_OFF= MANIFOLD_DOWNLOADS \
USE_LDCONFIG= yes
+.include <bsd.port.options.mk>
+
+pre-configure:
+.if ${ARCH} == "i386" || ${ARCH} == "armv7"
+ ${REINPLACE_CMD} -e 's|-Werror|-Wno-format|' ${WRKSRC}/CMakeLists.txt
+.endif
+
do-test:
(cd ${BUILD_WRKSRC}/test && ./manifold_test)