civodul pushed a commit to branch core-updates
in repository guix.

commit d2b5ede0539567568cfb917e08f1b80a3eab38e7
Author: Ludovic Courtès <l...@gnu.org>
Date:   Thu Dec 21 10:46:24 2017 +0100

    build-system/gnu: Check whether the cross-libc has a "static" output.
    
    This is a followup to 614fffe4270cef308573a6d9cef650f3972875af, which
    broke cross-compilation to i686-w64-mingw32.
    
    * guix/build-system/gnu.scm (standard-cross-packages): Add
    "cross-libc:static" only when LIBC has a "static" output.
---
 guix/build-system/gnu.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index ae8274a..c914007 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -415,8 +415,12 @@ is one of `host' or `target'."
            ("cross-binutils" ,(binutils target))))
         ((target)
          (let ((libc (libc target)))
-          `(("cross-libc" ,libc)
-            ("cross-libc:static" ,libc "static"))))))))
+           `(("cross-libc" ,libc)
+
+             ;; MinGW's libc doesn't have a "static" output.
+             ,@(if (member "static" (package-outputs libc))
+                   `(("cross-libc:static" ,libc "static"))
+                   '()))))))))
 
 (define* (gnu-cross-build store name
                           #:key

Reply via email to