dev-libs/libgcrypt: filter LTO on riscv

There is a known issue in GCC causing build failures in this package on
riscv when LTO is enabled. This commit temporary disables LTO on riscv.

Closes: https://bugs.gentoo.org/956605
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2025-05-27 18:38:11 -04:00
parent e0cfe75357
commit cd84427a1b

View File

@@ -89,6 +89,13 @@ src_configure() {
# -O0 already. Don't risk it with UB.
strip-flags
# Temporary workaround for a build failure (known gcc issue):
#
# * https://bugs.gentoo.org/956605
# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
#
use riscv && filter-lto
# Hardcodes the path to FGREP in libgcrypt-config
export ac_cv_path_SED="sed"
export ac_cv_path_EGREP="grep -E"