mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 20:15:25 -06:00
gnu: Add musl-boot-static.
* gnu/packages/commencement.scm (musl-boot-static): New variable. Change-Id: Ia1b9758c5e525c6fd25ea00539357d2ec9fbd8cc
This commit is contained in:
parent
7fbe3db97b
commit
d45a61333d
1 changed files with 24 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue