gnu: libstdc++: Fix build for linux with gcc-14.

* gnu/packages/gcc.scm (make-libstdc++)[arguments]: Rename stage "patch-hurd64
to "patch-tzdb.cc and use for gcc >= 14 unrestrictedly.

Change-Id: Icaf0a31744dc6102d96444f531f3ba1878a61b6c
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-05 15:14:37 +01:00 committed by Andreas Enge
parent b5c69f8c7d
commit 1308ce47c9
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1077,14 +1077,14 @@ using compilers other than GCC."
(add-before 'configure 'chdir (add-before 'configure 'chdir
(lambda _ (lambda _
(chdir "libstdc++-v3"))) (chdir "libstdc++-v3")))
#$@(let ((version (package-version gcc)))
(if (target-hurd64?) #$@(if (version>=? (package-version gcc) "14")
#~((add-after 'unpack 'patch-hurd64 #~((add-after 'unpack 'patch-tzdb.cc
(lambda _ (lambda _
(substitute* "libstdc++-v3/src/c++20/tzdb.cc" (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
(("#if ! defined _GLIBCXX_ZONEINFO_DIR") (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
"#if __GNU__ || ! defined _GLIBCXX_ZONEINFO_DIR"))))) "#if 1 // ! defined _GLIBCXX_ZONEINFO_DIR")))))
'()))) '()))
#:configure-flags '`("--disable-libstdcxx-pch" #:configure-flags '`("--disable-libstdcxx-pch"
,(string-append "--with-gxx-include-dir=" ,(string-append "--with-gxx-include-dir="