guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: build-system/gnu: Check whether the cross-libc has a "static" out


From: Ludovic Courtès
Subject: 01/02: build-system/gnu: Check whether the cross-libc has a "static" output.
Date: Thu, 21 Dec 2017 06:22:47 -0500 (EST)

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

commit d2b5ede0539567568cfb917e08f1b80a3eab38e7
Author: Ludovic Courtès <address@hidden>
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

[Prev in Thread] Current Thread [Next in Thread]