From 12eb42822ffc0bf058afcac72dda36ca0793ff9e Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sun, 20 Jun 2021 23:05:11 +0000 Subject: [PATCH] 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