Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2021 02:03:37 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: 728e26e5c6f8 - main - devel/bullet: fix build on powerpc
Message-ID:  <202112200203.1BK23bnk079586@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=728e26e5c6f8e7c59fc515759a1671b530840187

commit 728e26e5c6f8e7c59fc515759a1671b530840187
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-20 01:56:45 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-20 01:56:45 +0000

    devel/bullet: fix build on powerpc
    
    : && /usr/bin/c++ -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11 -fopenmp -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -shared -Wl,-soname,libHACD.so.3.20 -o Extras/HACD/libHACD.so.3.20 Extras/HACD/CMakeFiles/HACD.dir/hacdGraph.o Extras/HACD/CMakeFiles/HACD.dir/hacdHACD.o Extras/HACD/CMakeFiles/HACD.dir/hacdICHull.o Extras/HACD/CMakeFiles/HACD.dir/hacdManifoldMesh.o  -pthread && :
    ld: error: unable to find library -lomp
---
 devel/bullet/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/devel/bullet/Makefile b/devel/bullet/Makefile
index 55341678d677..a9337e071dd8 100644
--- a/devel/bullet/Makefile
+++ b/devel/bullet/Makefile
@@ -30,7 +30,7 @@ GH_PROJECT=	bullet3
 
 CMAKE_ON=	BUILD_BULLET3 BUILD_SHARED_LIBS INSTALL_LIBS \
 		BUILD_EXTRAS INSTALL_EXTRA_LIBS \
-		BULLET2_MULTITHREADING BULLET2_USE_OPEN_MP_MULTITHREADING
+		BULLET2_MULTITHREADING
 CMAKE_OFF=	BUILD_CPU_DEMOS BUILD_BULLET2_DEMOS BUILD_BULLET3_DEMOS \
 		BUILD_OPENGL3_DEMOS BUILD_PYBULLET BUILD_UNIT_TESTS \
 		BULLET2_USE_TBB_MULTITHREADING ENABLE_VHACD \
@@ -51,6 +51,14 @@ OPTIONS_DEFINE=	DOCS
 
 PLIST_SUB=	LIB_VERSION=3.20
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+CMAKE_OFF+=	BULLET2_USE_OPEN_MP_MULTITHREADING
+.else
+CMAKE_ON+=	BULLET2_USE_OPEN_MP_MULTITHREADING
+.endif
+
 post-patch:
 	@${RM} -r ${WRKSRC}/examples/pybullet
 



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