Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2021 12:11:04 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ff5ae1981ca6 - main - cad/gds3d: fix build on powerpc
Message-ID:  <202111161211.1AGCB4TY078551@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111161211.1AGCB4TY078551>