git: 12eb42822ffc - main - net-mgmt/netdata: disable LTO on powerpc64 and riscv64

Piotr Kubaj pkubaj at FreeBSD.org
Sun Jun 20 23:05:47 UTC 2021


The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=12eb42822ffc0bf058afcac72dda36ca0793ff9e

commit 12eb42822ffc0bf058afcac72dda36ca0793ff9e
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-20 23:05:11 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-20 23:05:11 +0000

    net-mgmt/netdata: disable LTO on powerpc64 and riscv64
    
    Using LTO on powerpc64 with Clang generates broken binaries.
    On riscv64, LTO with Clang doesn't work at all:
    checking if -flto builds executables... no
    configure: error: LTO is required but is not available.
---
 net-mgmt/netdata/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-mgmt/netdata/Makefile b/net-mgmt/netdata/Makefile
index b8f91d32349a..50a30a07a6ec 100644
--- a/net-mgmt/netdata/Makefile
+++ b/net-mgmt/netdata/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	netdata
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.31.0
+PORTVERSION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ \
 		https://github.com/forkbomb9/netdata/commit/:dashboard
@@ -59,6 +60,8 @@ OPTIONS_DEFAULT_FreeBSD_12=	LTO
 OPTIONS_DEFAULT_FreeBSD_13=	LTO
 OPTIONS_DEFAULT_FreeBSD_14=	LTO
 OPTIONS_DEFAULT+=	${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}}
+OPTIONS_EXCLUDE_powerpc64=	LTO
+OPTIONS_EXCLUDE_riscv64=	LTO
 OPTIONS_SUB=		YES
 
 CLOUD_DESC=		Enable cloud functionality


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