gnu: gcc: Fix cross-compilation to GNU/Hurd.

* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Return
"--disable-libcilkrts" when TARGET matches "-gnu".
This commit is contained in:
Ludovic Courtès 2017-12-31 01:18:34 +01:00
parent c99a64e15f
commit ec6ba5c1fe
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -65,6 +65,14 @@ (define (gcc-configure-flags-for-triplet target)
"--with-mode=thumb"
"--with-fpu=neon"))
((and (string-suffix? "-gnu" target)
(not (string-contains target "-linux")))
;; Cross-compilation of libcilkrts in GCC 5.5.0 to GNU/Hurd fails
;; with:
;; libcilkrts/runtime/os-unix.c:388:2: error: #error "Unknown architecture"
;; Cilk has been removed from GCC 8 anyway.
'("--disable-libcilkrts"))
(else
;; TODO: Add `arm.*-gnueabi', etc.
'())))