mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: commencement: gcc-final: Fix build for x86-linux with gcc-14.
Summary: Use fixes for the 64bit Hurd also on linux. * gnu/packages/commencement.scm (gcc-final)[arguments]: When building for x86-linux, create a gcc wrapper in phase "create-stage-wrapper", use it by adding STAGE_CC_WRAPPER to #:make-flags, and CC to #:configure-flags to convince configure gmp that gcc and g++ work.
This commit is contained in:
parent
cbd17257aa
commit
60d0c87b6e
1 changed files with 6 additions and 3 deletions
|
@ -3274,7 +3274,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
|
||||||
"/lib -L" zlib "/lib -Wl,-rpath="
|
"/lib -L" zlib "/lib -Wl,-rpath="
|
||||||
zlib "/lib")
|
zlib "/lib")
|
||||||
flag))
|
flag))
|
||||||
#$(if (target-hurd64?)
|
#$(if (or (target-hurd64?)
|
||||||
|
(and (target-x86?) (target-linux?)))
|
||||||
`(cons
|
`(cons
|
||||||
(string-append
|
(string-append
|
||||||
;;Convince gmp's configure that gcc works
|
;;Convince gmp's configure that gcc works
|
||||||
|
@ -3282,7 +3283,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
|
||||||
,flags)
|
,flags)
|
||||||
flags))))
|
flags))))
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
(if (target-hurd64?)
|
(if (or (target-hurd64?)
|
||||||
|
(and (target-x86?) (target-linux?)))
|
||||||
#~(append
|
#~(append
|
||||||
#$flags
|
#$flags
|
||||||
(list #$(string-append
|
(list #$(string-append
|
||||||
|
@ -3336,7 +3338,8 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
|
||||||
#\:))
|
#\:))
|
||||||
":")
|
":")
|
||||||
"\nAM_CXXFLAGS = "))))))
|
"\nAM_CXXFLAGS = "))))))
|
||||||
#$@(if (target-hurd64?)
|
#$@(if (or (target-hurd64?)
|
||||||
|
(and (target-x86?) (target-linux?)))
|
||||||
#~((add-after 'configure 'create-stage-wrapper
|
#~((add-after 'configure 'create-stage-wrapper
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-output-to-file "gcc.sh"
|
(with-output-to-file "gcc.sh"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue