1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

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.
This commit is contained in:
Piotr Kubaj 2021-06-20 23:05:11 +00:00
parent 2287e8f627
commit 12eb42822f

View File

@ -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