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:
Ludovic Courtès 2014-06-14 15:58:23 +02:00
parent c4873bc4f5
commit 6e3ecad6ca
1 changed files with 8 additions and 1 deletions

View File

@ -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