gnu: make-bootstrap: Make sure %gcc-stripped binaries are usable.
* gnu/packages/make-bootstrap.scm (%gcc-stripped): When (%current-target-system) is false, run gcc, g++, and cpp with --version.
This commit is contained in:
parent
c4873bc4f5
commit
6e3ecad6ca
|
@ -485,7 +485,14 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
|||
;; (‘genchecksum’, ‘gcc-nm’, etc.) rely on C++ headers.
|
||||
(copy-recursively (string-append gcc "/include/c++")
|
||||
(string-append includedir "/c++"))
|
||||
#t))))
|
||||
|
||||
;; For native builds, check whether the binaries actually work.
|
||||
,(if (%current-target-system)
|
||||
'#t
|
||||
'(every (lambda (prog)
|
||||
(zero? (system* (string-append gcc "/bin/" prog)
|
||||
"--version")))
|
||||
'("gcc" "g++" "cpp")))))))
|
||||
(inputs `(("gcc" ,%gcc-static)))))
|
||||
|
||||
(define %guile-static
|
||||
|
|
Loading…
Reference in New Issue