mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 19:39:34 +01:00
gnu: libstdc++: Fix build for x86-linux with gcc-14.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: When building with gcc-14 for x86-linux, add stage patch-x86_64-linux. Change-Id: Icaf0a31744dc6102d96444f531f3ba1878a61b6c
This commit is contained in:
parent
c7f5d29fe2
commit
8c8575afa2
1 changed files with 15 additions and 8 deletions
|
@ -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?) (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="
|
||||
|
|
Loading…
Add table
Reference in a new issue