gnu: gcc: Fix compilation of libstdc++ for GCC 7 to 13.

With the introduction of GCC 14 as the default compiler, compilation of
libstdc++ of all previous versions would fail due to a different
signature for ‘__cxa_call_terminate’ (a builtin in GCC 14).  This fixes it.

* gnu/packages/patches/gcc-libstdc++-newer-gcc.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-7, gcc-8, gcc-9, gcc-10)
(gcc-11, gcc-12, gcc-13): Use it.

Change-Id: I84dc26e46d56259d7d610f19b0521fa9c5499d5e
This commit is contained in:
Ludovic Courtès 2025-06-11 23:21:04 +02:00 committed by Andreas Enge
parent ca8e8e206b
commit 42f7c1bb17
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 48 additions and 8 deletions