mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: When building for x86-linux, add phase "patch-system.h" to substitute fix SIZE_MAX macro. Change-Id: I6e552aaa458755ec920873a0535f599c88a1f74f
This commit is contained in:
parent
4b9f91079c
commit
fe48aaa96c
1 changed files with 9 additions and 0 deletions
|
@ -2429,6 +2429,15 @@ (define gcc-boot0
|
|||
char-set:letter)
|
||||
#$(package-name lib)))
|
||||
(list gmp-6.0 mpfr mpc)))))
|
||||
#$@(if (and (target-linux?) (target-x86?))
|
||||
#~((add-after 'unpack 'patch-system.h
|
||||
(lambda _
|
||||
;; Avoid: missing binary operator before token "("
|
||||
(substitute* "gcc/system.h"
|
||||
(("#ifndef SIZE_MAX" all)
|
||||
(string-append "#define SIZE_MAX (ULONG_MAX)\n"
|
||||
all))))))
|
||||
#~())
|
||||
#$@(if (target-hurd64?)
|
||||
#~((add-after 'unpack 'patch-libcc1-static
|
||||
(lambda _
|
||||
|
|
Loading…
Reference in a new issue