Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2021 08:42:11 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: 7a9b92c408f0 - main - sysutils/fluent-bit: fix build on powerpc
Message-ID:  <202106150842.15F8gBBb064506@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=7a9b92c408f03518c312d0b41c3b4a02e3070ce3

commit 7a9b92c408f03518c312d0b41c3b4a02e3070ce3
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-15 08:41:02 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-15 08:41:02 +0000

    sysutils/fluent-bit: fix build on powerpc
    
    gmake[5]: Entering directory '/wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-1.7.8/lib/luajit-2.1.0-1e66d0f/src'
    lj_arch.h:455:2: error: "Need at least GCC 4.3 or newer"
---
 sysutils/fluent-bit/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sysutils/fluent-bit/Makefile b/sysutils/fluent-bit/Makefile
index 22def34a72c4..f2c3e3c84812 100644
--- a/sysutils/fluent-bit/Makefile
+++ b/sysutils/fluent-bit/Makefile
@@ -17,7 +17,7 @@ BROKEN_riscv64=		fails to build: No support for this architecture (yet)
 USE_GITHUB=	yes
 GH_ACCOUNT=	fluent
 
-USES=		cmake:noninja compiler:c11 gmake bison
+USES=		cmake:noninja gmake bison
 
 OPTIONS_DEFINE=		SSL PGSQL
 OPTIONS_DEFAULT=	SSL
@@ -46,6 +46,10 @@ EXTRA_PATCHES=	${PATCHDIR}/extra-patch-lib_luajit__src__lj_prng.c
 
 .if ${ARCH:Mpowerpc64*}
 CMAKE_ARGS+=	-DFLB_LUAJIT:BOOL=OFF
+.elif ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c11
 .endif
 
 post-install:



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