Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2021 12:25:34 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: 0a618235c76d - main - biology/fasttree: fix build on powerpc
Message-ID:  <202106101225.15ACPYh1060032@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=0a618235c76d379d40ae3087e19a8de0068c2221

commit 0a618235c76d379d40ae3087e19a8de0068c2221
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-10 12:25:31 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-10 12:25:31 +0000

    biology/fasttree: fix build on powerpc
    
    LLVM on powerpc doesn't have libomp.
    Same issue happens on armv6 and armv7 but someone has to test whether doing the same for those architectures is enough.
---
 biology/fasttree/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/biology/fasttree/Makefile b/biology/fasttree/Makefile
index 30dd2cd31972..304ee4959939 100644
--- a/biology/fasttree/Makefile
+++ b/biology/fasttree/Makefile
@@ -16,6 +16,12 @@ BROKEN_armv7=		fails to compile: FastTree-2.1.10.c:305:10: 'omp.h' file not foun
 NO_WRKSUBDIR=	yes
 PLIST_FILES=	bin/FastTree
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES=		compiler:gcc-c++11-lib
+.endif
+
 do-extract:
 	@${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}
 	@${CP} ${FILESDIR}/Makefile ${WRKSRC}



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