Date: Thu, 10 Jun 2021 08:58:06 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: 086a104102fe - main - devel/dmlc-core: fix build on powerpc Message-ID: <202106100858.15A8w6mx079444@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=086a104102fe53938a02124f7b380042ba3e7f22 commit 086a104102fe53938a02124f7b380042ba3e7f22 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-06-10 08:57:33 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-06-10 08:57:33 +0000 devel/dmlc-core: fix build on powerpc LLVM on powerpc doesn't have libomp working. Not using compiler:openmp here, because it effectively sets USE_GCC=yes for everyone. --- devel/dmlc-core/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/devel/dmlc-core/Makefile b/devel/dmlc-core/Makefile index 4edb9e440696..dee6e22f06c6 100644 --- a/devel/dmlc-core/Makefile +++ b/devel/dmlc-core/Makefile @@ -9,11 +9,19 @@ COMMENT= Common library for scalable and portable distributed machine learning LICENSE= APACHE20 -USES= cmake compiler:c++11-lang +USES= cmake USE_GITHUB= yes GH_ACCOUNT= dmlc USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++11-lang +.endif + .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106100858.15A8w6mx079444>