git: 15619040d794 - main - math/manifold: fix on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 May 2025 13:39:25 UTC
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=15619040d794b0162a19575c6ec6ed5d9e00fc04
commit 15619040d794b0162a19575c6ec6ed5d9e00fc04
Author: Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-05-09 13:35:02 +0000
Commit: Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-05-09 13:39:16 +0000
math/manifold: fix on i386
Remove -Werror on 32 bits archs: compilation failed in stl_test.cpp, caused
by a format mismatch in printf.
---
math/manifold/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
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)