commit:     8d8874b0078606ed7f053bbc2b0f2798542c1dc7
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 21:47:04 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d8874b0

dev-libs/icu: 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>

 dev-libs/icu/icu-73.2.ebuild | 2 +-
 dev-libs/icu/icu-74.1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/icu/icu-73.2.ebuild b/dev-libs/icu/icu-73.2.ebuild
index b01264579e85..d821c812d01f 100644
--- a/dev-libs/icu/icu-73.2.ebuild
+++ b/dev-libs/icu/icu-73.2.ebuild
@@ -123,7 +123,7 @@ multilib_src_configure() {
        )
 
        # Work around cross-endian testing failures with LTO, bug #757681
-       if tc-is-cross-compiler && is-flagq '-flto*' ; then
+       if tc-is-cross-compiler && tc-is-lto ; then
                myeconfargs+=( --disable-strict )
        fi
 

diff --git a/dev-libs/icu/icu-74.1.ebuild b/dev-libs/icu/icu-74.1.ebuild
index 2b8644b47867..cf2868d8fc7e 100644
--- a/dev-libs/icu/icu-74.1.ebuild
+++ b/dev-libs/icu/icu-74.1.ebuild
@@ -122,7 +122,7 @@ multilib_src_configure() {
        )
 
        # Work around cross-endian testing failures with LTO, bug #757681
-       if tc-is-cross-compiler && is-flagq '-flto*' ; then
+       if tc-is-cross-compiler && tc-is-lto ; then
                myeconfargs+=( --disable-strict )
        fi
 

Reply via email to