guix_mirror_bot pushed a commit to branch wip-riscv-bootstrap
in repository guix.

commit eace31d89a67b7d0b852cd8b169203eed7ac386e
Author: Efraim Flashner <[email protected]>
AuthorDate: Mon Jul 28 09:54:45 2025 +0300

    gnu: Add musl-boot-static.
    
    * gnu/packages/commencement.scm (musl-boot-static): New variable.
    
    Change-Id: Ia1b9758c5e525c6fd25ea00539357d2ec9fbd8cc
---
 gnu/packages/commencement.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 5c19eb5054..ff2ddde843 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2607,6 +2607,30 @@ exec " gcc "/bin/" program
                (string-append "--host=" #$(commencement-build-target))
                "--enable-static"
                "--disable-shared")))))
+
+(define musl-boot-static
+  (package
+    (inherit musl-boot)
+    (native-inputs (if (target-x86?)
+                       `(("gcc-wrapper" ,gcc-mesboot1-wrapper)
+                         ("headers" ,glibc-headers-mesboot)
+                         ,@(%boot-mesboot4-inputs))
+                       (%boot-muslboot3-inputs)))
+    (arguments
+     (substitute-keyword-arguments
+       (package-arguments musl-boot)
+       ((#:configure-flags _ #~'())
+        #~(list (string-append "CONFIG_SHELL="
+                               #$(this-package-native-input "bash")
+                               "/bin/sh")
+                (string-append "--syslibdir=" #$output "/lib")
+                "CC=gcc"
+                "--disable-shared"
+                "--enable-gcc-wrapper"))
+       ((#:phases phases #~'%standard-phases)
+        #~(modify-phases #$phases
+            (delete 'symlink-dynamic-linker)))))))
+
 (define gcc-mesboot
   (package
     (inherit gcc-mesboot1)

Reply via email to