gnu: Add musl-boot-static.

* gnu/packages/commencement.scm (musl-boot-static): New variable.

Change-Id: Ia1b9758c5e525c6fd25ea00539357d2ec9fbd8cc
This commit is contained in:
Efraim Flashner 2025-07-28 09:54:45 +03:00
parent 7fbe3db97b
commit d45a61333d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2609,6 +2609,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)