commit: a4484fc63431d84fd0b366557d1c8a5df964d1c0 Author: David Michael <fedora.dm0 <AT> gmail <DOT> com> AuthorDate: Mon Mar 22 10:06:22 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Mon Mar 22 10:06:22 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4484fc6
dev-libs/icu: work around cross-endian tests failing The tests need __USE_MISC, which is undefined by -std=c11, which is added by --enable-strict, which is the default setting. There are fallback tests that work for native builds and non-LTO builds, but this specific case has no fallback and requires this workaround. Closes: https://bugs.gentoo.org/757681 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com> Signed-off-by: David Seifert <soap <AT> gentoo.org> dev-libs/icu/icu-68.2.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-libs/icu/icu-68.2.ebuild b/dev-libs/icu/icu-68.2.ebuild index 9f6649c9de0..1b834bbdc0c 100644 --- a/dev-libs/icu/icu-68.2.ebuild +++ b/dev-libs/icu/icu-68.2.ebuild @@ -91,6 +91,11 @@ multilib_src_configure() { --with-cross-build="${WORKDIR}"/host ) + # work around cross-endian testing failures with LTO #757681 + if tc-is-cross-compiler && is-flagq '-flto*' ; then + myeconfargs+=( --disable-strict ) + fi + # icu tries to use clang by default tc-export CC CXX
