commit:     cd84427a1b10deec9dfe745cf26e75d3cf57f49d
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue May 27 22:38:11 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue May 27 23:16:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd84427a

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 <AT> gentoo.org>

 dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
index 54beede43cf1..5b9e38f6da09 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
@@ -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"

Reply via email to