commit:     341afe3203d838514de4fe6a2ee217e7b8378a87
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 20 15:29:00 2020 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Tue Oct 20 15:29:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341afe32

net-analyzer/netdata: add lto USE flag

Closes: https://bugs.gentoo.org/750428
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-analyzer/netdata/metadata.xml          | 1 +
 net-analyzer/netdata/netdata-1.26.0.ebuild | 3 ++-
 net-analyzer/netdata/netdata-9999.ebuild   | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/netdata/metadata.xml 
b/net-analyzer/netdata/metadata.xml
index 8c3dae0f944..7eb82260872 100644
--- a/net-analyzer/netdata/metadata.xml
+++ b/net-analyzer/netdata/metadata.xml
@@ -11,6 +11,7 @@
     <flag name="ipmi">Install <pkg>sys-apps/ipmitool</pkg> required for 
monitoring IPMI sensors.</flag>
     <flag name="jsonc">Enable optimization of JSON using 
<pkg>dev-libs/json-c</pkg></flag>
     <flag name="kinesis">Enable support for Amazon Kenesis as a backend</flag>
+    <flag name="lto">Build with Link Time Optimization (LTO)</flag>
     <flag name="mongodb">Enable support for the mongodb backend</flag>
     <flag name="nfacct">Enable the nfacct plugin</flag>
     <flag name="nodejs">Enable use of nodejs (which some plugins use)</flag>

diff --git a/net-analyzer/netdata/netdata-1.26.0.ebuild 
b/net-analyzer/netdata/netdata-1.26.0.ebuild
index 48231022d05..f935e5a09fa 100644
--- a/net-analyzer/netdata/netdata-1.26.0.ebuild
+++ b/net-analyzer/netdata/netdata-1.26.0.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/netdata/netdata 
https://my-netdata.io/";
 
 LICENSE="GPL-3+ MIT BSD"
 SLOT="0"
-IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis 
mongodb mysql nfacct nodejs postgres prometheus +python tor xen"
+IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis 
+lto mongodb mysql nfacct nodejs postgres prometheus +python tor xen"
 REQUIRED_USE="
        mysql? ( python )
        python? ( ${PYTHON_REQUIRED_USE} )
@@ -106,6 +106,7 @@ src_configure() {
                $(use_enable nfacct plugin-nfacct) \
                $(use_enable ipmi plugin-freeipmi) \
                $(use_enable kinesis backend-kinesis) \
+               $(use_enable lto lto) \
                $(use_enable mongodb backend-mongodb) \
                $(use_enable prometheus backend-prometheus-remote-write) \
                $(use_enable xen plugin-xenstat) \

diff --git a/net-analyzer/netdata/netdata-9999.ebuild 
b/net-analyzer/netdata/netdata-9999.ebuild
index 48231022d05..f935e5a09fa 100644
--- a/net-analyzer/netdata/netdata-9999.ebuild
+++ b/net-analyzer/netdata/netdata-9999.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/netdata/netdata 
https://my-netdata.io/";
 
 LICENSE="GPL-3+ MIT BSD"
 SLOT="0"
-IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis 
mongodb mysql nfacct nodejs postgres prometheus +python tor xen"
+IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis 
+lto mongodb mysql nfacct nodejs postgres prometheus +python tor xen"
 REQUIRED_USE="
        mysql? ( python )
        python? ( ${PYTHON_REQUIRED_USE} )
@@ -106,6 +106,7 @@ src_configure() {
                $(use_enable nfacct plugin-nfacct) \
                $(use_enable ipmi plugin-freeipmi) \
                $(use_enable kinesis backend-kinesis) \
+               $(use_enable lto lto) \
                $(use_enable mongodb backend-mongodb) \
                $(use_enable prometheus backend-prometheus-remote-write) \
                $(use_enable xen plugin-xenstat) \

Reply via email to