commit:     198d1cae195f4d8807f3092933bc9a45a939207b
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 22:03:50 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=198d1cae

app-office/libreoffice: 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>

 app-office/libreoffice/libreoffice-7.5.9.2.ebuild | 2 +-
 app-office/libreoffice/libreoffice-9999.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-office/libreoffice/libreoffice-7.5.9.2.ebuild 
b/app-office/libreoffice/libreoffice-7.5.9.2.ebuild
index e8a4b6d5ca4e..c5269a7e3134 100644
--- a/app-office/libreoffice/libreoffice-7.5.9.2.ebuild
+++ b/app-office/libreoffice/libreoffice-7.5.9.2.ebuild
@@ -580,7 +580,7 @@ src_configure() {
                        myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar 
rhino-1.6 rhino.jar) )
        fi
 
-       is-flagq "-flto*" && myeconfargs+=( --enable-lto )
+       tc-is-lto && myeconfargs+=( --enable-lto )
 
        MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
        econf "${myeconfargs[@]}"

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild 
b/app-office/libreoffice/libreoffice-9999.ebuild
index 3d488003abe7..46798bb521b1 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -572,7 +572,7 @@ src_configure() {
                        myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar 
rhino-1.6 rhino.jar) )
        fi
 
-       is-flagq "-flto*" && myeconfargs+=( --enable-lto )
+       tc-is-lto && myeconfargs+=( --enable-lto )
 
        MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
        econf "${myeconfargs[@]}"

Reply via email to