git: 086a104102fe - main - devel/dmlc-core: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Thu Jun 10 08:58:07 UTC 2021


The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=086a104102fe53938a02124f7b380042ba3e7f22

commit 086a104102fe53938a02124f7b380042ba3e7f22
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-10 08:57:33 +0000
Commit:     Piotr Kubaj <pkubaj at 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>


More information about the dev-commits-ports-main mailing list