mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02: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:
committed by
Andreas Enge
parent
d0131709fa
commit
fe6970cd94
@@ -2429,6 +2429,15 @@ exec " gcc "/bin/" program
|
||||
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 _
|
||||
|
||||
Reference in New Issue
Block a user