[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/21: gnu: libstdc++: Fix build for x86_64-linux with gcc-14.
From: |
guix-commits |
Subject: |
19/21: gnu: libstdc++: Fix build for x86_64-linux with gcc-14. |
Date: |
Thu, 5 Dec 2024 14:57:13 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 15c434cfd5392bfbb73b6cff0f9fbd240946a88c
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Dec 5 15:14:37 2024 +0100
gnu: libstdc++: Fix build for x86_64-linux with gcc-14.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: When building with
gcc-14
for x86_64-linux 64bit Hurd, add stage patch-x86_64-linux.
Change-Id: Icaf0a31744dc6102d96444f531f3ba1878a61b6c
---
gnu/packages/gcc.scm | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 6247919fec..86f7a7df35 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -1029,14 +1029,21 @@ using compilers other than GCC."
(add-before 'configure 'chdir
(lambda _
(chdir "libstdc++-v3")))
- #$@(let ((version (package-version gcc)))
- (if (target-hurd64?)
- #~((add-after 'unpack 'patch-hurd64
- (lambda _
- (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
- (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
- "#if __GNU__ || ! defined
_GLIBCXX_ZONEINFO_DIR")))))
- '())))
+ #$@(if (target-hurd64?)
+ #~((add-after 'unpack 'patch-hurd64
+ (lambda _
+ (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
+ (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
+ "#if __GNU__ || ! defined
_GLIBCXX_ZONEINFO_DIR")))))
+ '())
+ #$@(if (and (target-x86-64?) (target-linux?)
+ (version>=? (package-version gcc) "14"))
+ #~((add-after 'unpack 'patch-x86_64-linux
+ (lambda _
+ (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
+ (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
+ "#if __x86_64__ || ! defined
_GLIBCXX_ZONEINFO_DIR")))))
+ '()))
#:configure-flags '`("--disable-libstdcxx-pch"
,(string-append "--with-gxx-include-dir="
- 11/21: gnu: gettext: Update to 0.23., (continued)
- 11/21: gnu: gettext: Update to 0.23., guix-commits, 2024/12/05
- 04/21: gnu: commencement: gcc-boot0: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 13/21: gnu: automake: Fix build with gcc-14., guix-commits, 2024/12/05
- 14/21: gnu: automake: Update to 1.17., guix-commits, 2024/12/05
- 16/21: gnu: automake-1.16.5: Skip tests., guix-commits, 2024/12/05
- 12/21: gnu: unzip: Fix build with gcc-14., guix-commits, 2024/12/05
- 06/21: gnu: bash-minimal: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 07/21: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/05
- 17/21: gnu: bdb: Use automake-1.16.5., guix-commits, 2024/12/05
- 20/21: gnu: torsocks: Fix build with gcc-14., guix-commits, 2024/12/05
- 19/21: gnu: libstdc++: Fix build for x86_64-linux with gcc-14.,
guix-commits <=
- 21/21: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/05