guix-commits
[Top][All Lists]
Advanced

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

02/21: gnu: bootstrap: mescc-tools: Support ARM.


From: guix-commits
Subject: 02/21: gnu: bootstrap: mescc-tools: Support ARM.
Date: Wed, 19 Oct 2022 01:40:08 -0400 (EDT)

janneke pushed a commit to branch wip-arm-bootstrap
in repository guix.

commit a7e7f2909019e5b00734e5316261df097a9549aa
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Dec 13 22:47:18 2021 +0100

    gnu: bootstrap: mescc-tools: Support ARM.
    
    * gnu/packages/make-bootstrap.scm[arguments]: Support armhf-linux,
    aarch64-linux.  Update make-flags to really build static.
---
 gnu/packages/make-bootstrap.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 4ea97368a9..152b070c67 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -598,10 +598,13 @@ for `sh' in $PATH, and without nscd, and with static NSS 
modules."
     (inherit mescc-tools)
     (name "mescc-tools-static")
     (arguments
-     `(#:system "i686-linux"
+     `(#:system ,(match (%current-system)
+                   ((or "i686-linux" "x86_64-linux") "i686-linux")
+                   ((or "armhf-linux" "aarch64-linux") "armhf-linux"))
        ,@(substitute-keyword-arguments (package-arguments mescc-tools)
            ((#:make-flags flags)
-            `(cons "CC=gcc -static" ,flags)))))))
+            '(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
+                   "CC=gcc -static")))))))
 
 ;; ... next remove store references.
 (define %mescc-tools-static-stripped



reply via email to

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