commit:     565df5d5aba2c5df3583f10042a421e8596043db
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 21:56:43 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=565df5d5

net-misc/ntpsec: migrate checking for enabled lto, to tc-is-lto

This toolchain func was recently added, and is a lot more reliable than
get-flagq, for example if the active flags contain `-flto -fno-lto` then
tc-is-lto gets it correct. We would rather use this wherever possible.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild | 4 ++--
 net-misc/ntpsec/ntpsec-1.2.2.ebuild    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild 
b/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild
index 6d842405cf4d..8dccc88c556e 100644
--- a/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{9..11} )
 PYTHON_REQ_USE='threads(+)'
 DISTUTILS_USE_SETUPTOOLS=no
 
-inherit distutils-r1 flag-o-matic waf-utils systemd
+inherit distutils-r1 flag-o-matic waf-utils systemd toolchain-funcs
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -74,7 +74,7 @@ src_prepare() {
 }
 
 src_configure() {
-       is-flagq -flto* && filter-flags -fuse-linker-plugin
+       tc-is-lto && filter-flags -fuse-linker-plugin
        filter-lto
 
        local string_127=""

diff --git a/net-misc/ntpsec/ntpsec-1.2.2.ebuild 
b/net-misc/ntpsec/ntpsec-1.2.2.ebuild
index 66d287913999..0b9c2a939cc3 100644
--- a/net-misc/ntpsec/ntpsec-1.2.2.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.2.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{9..11} )
 PYTHON_REQ_USE='threads(+)'
 DISTUTILS_USE_SETUPTOOLS=no
 
-inherit distutils-r1 flag-o-matic waf-utils systemd
+inherit distutils-r1 flag-o-matic waf-utils systemd toolchain-funcs
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -73,7 +73,7 @@ src_prepare() {
 }
 
 src_configure() {
-       is-flagq -flto* && filter-flags -fuse-linker-plugin
+       tc-is-lto && filter-flags -fuse-linker-plugin
        filter-lto
 
        local string_127=""

Reply via email to