commit:     fe872e9a486c58a572b39b8de540f2e5a65ec18a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May  7 17:48:59 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May  7 18:12:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe872e9a

dev-libs/libpcre2: conditionally call lto-guarantee-fat

When we have USE=static-libs and that controls all static library use,
we can avoid adding -ffat-lto-objects for USE=-static-libs.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libpcre2/libpcre2-10.45.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/libpcre2/libpcre2-10.45.ebuild 
b/dev-libs/libpcre2/libpcre2-10.45.ebuild
index 8c79b800d299..9d3b13d8c999 100644
--- a/dev-libs/libpcre2/libpcre2-10.45.ebuild
+++ b/dev-libs/libpcre2/libpcre2-10.45.ebuild
@@ -56,7 +56,7 @@ src_prepare() {
 }
 
 src_configure() {
-       lto-guarantee-fat
+       use static-libs && lto-guarantee-fat
        multilib-minimal_src_configure
 }
 

Reply via email to