commit:     a6c40d35ca61948c30fd5f4b729df2919bf6ba8a
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Apr  9 23:18:17 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 10 02:30:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c40d35

dev-libs/icu: mark as LTO-unsafe

It is a test-only unsafety, but this prevents testing that the LTO'ed
version works.

Closes: https://bugs.gentoo.org/866947
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/icu/icu-74.2.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-libs/icu/icu-74.2.ebuild b/dev-libs/icu/icu-74.2.ebuild
index d95a60360a39..dcfd9ddc6d2b 100644
--- a/dev-libs/icu/icu-74.2.ebuild
+++ b/dev-libs/icu/icu-74.2.ebuild
@@ -69,6 +69,14 @@ src_prepare() {
 src_configure() {
        MAKEOPTS+=" VERBOSE=1"
 
+       # -Werror=odr
+       # https://bugs.gentoo.org/866947
+       # https://unicode-org.atlassian.net/browse/ICU-22001
+       #
+       # Only present in testsuite, but unfortunately that means we cannot...
+       # test... LTO support.
+       filter-lto
+
        # ICU tries to append -std=c++11 without this, so as of 71.1,
        # despite GCC 9+ using c++14 (or gnu++14) and GCC 11+ using gnu++17,
        # we still need this.

Reply via email to