git: ff5ae1981ca6 - main - cad/gds3d: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Nov 2021 12:11:04 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ff5ae1981ca6f5b1670b9e72f2b29effa3b39450
commit ff5ae1981ca6f5b1670b9e72f2b29effa3b39450
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-16 12:03:45 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-16 12:03:45 +0000
cad/gds3d: fix build on powerpc
ld: error: unable to find library -lomp
---
cad/gds3d/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cad/gds3d/Makefile b/cad/gds3d/Makefile
index ab5140707cf4..f456e544f1b4 100644
--- a/cad/gds3d/Makefile
+++ b/cad/gds3d/Makefile
@@ -23,6 +23,12 @@ MAKE_ARGS= CC=${CXX}
PLIST_FILES= bin/${PORTNAME:tu}
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_GCC= yes
+.endif
+
post-patch: # workaround for https://github.com/trilomix/GDS3D/issues/14
@${REINPLACE_CMD} -e 's|Index = NULL;|Index = 0;|' ${WRKSRC}/../libgdsto3d/gdspolygon.cpp