commit:     769b35fa7f202a8efd749d69615fd6bb423b2361
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  2 11:47:44 2025 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Aug  2 11:47:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=769b35fa

dev-libs/libgcrypt: Force -std=gnu17 to fix build with gcc-15 (alpha, hppa, ...)

Closes: https://bugs.gentoo.org/951267
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

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

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
index 006aad0fc98b..fb7359c76eb1 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.1.ebuild
@@ -101,6 +101,9 @@ src_configure() {
        # least solve it the ebuild see https://bugs.gentoo.org/959349
        use x86 && filter-flags -mfpmath=sse
 
+       # Temporary workaround for build failures with gcc-15, see bug 951267
+       append-cflags -std=gnu17
+
        # 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