~ruther/guix-local

6e3ecad6ca547c1a03d62b80be3eac2a0206d52e — Ludovic Courtès 11 years ago c4873bc
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.
1 files changed, 8 insertions(+), 1 deletions(-)

M gnu/packages/make-bootstrap.scm
M gnu/packages/make-bootstrap.scm => gnu/packages/make-bootstrap.scm +8 -1
@@ 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