Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Programming/musl/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env modbuild

export LC_ALL=C

pbuild::configure(){ :; }

# Sometime I had issues with more then 4 parallel make jobs.
pbuild::compile(){
echo -e "TARGET=x86_64-linux-musl\nOUTPUT=$PREFIX" > config.mak
ls -la
make -j4
}
22 changes: 22 additions & 0 deletions Programming/musl/files/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
format: 1
musl:
defaults:
group: Programming
relstage: stable
compile_in_sourcetree: true

shasums:
musl-cross-make-2026-07-03.tar.gz: bb3fc7851088e1e5e1274ee56a0ab6ae176043d160fdf0b71027934b091f208a

versions:
1.2.6:
config:
urls:
- url: https://github.com/richfelker/musl-cross-make/archive/227df8b99103f9c59f6570babf892978e293082f.tar.gz
name: musl-cross-make-2026-07-03.tar.gz
relstage: unstable
variants:
- overlay: PSI
systems: [.*.merlin7.psi.ch]
target_cpus: [x86_64]
25 changes: 25 additions & 0 deletions Programming/musl/modulefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#%Module1.0

module-whatis "MUSL-gcc is a special compiler for producing static binaries"
module-url "https://www.musl-libc.org/"
module-license "MIT"
module-maintainer "Hans-Nikolai Viessmann <hans-nikolai.viessmann@psi.ch>"

module-help "
musl provides consistent quality and implementation behavior from tiny embedded
systems to full-fledged servers. Minimal machine-specific code means less
chance of breakage on minority architectures and better success with “write
once run everywhere” C development.
"
module-addgroup "Compiler"

setenv CC $PREFIX/bin/x86_64-linux-musl-gcc
setenv CXX $PREFIX/bin/x86_64-linux-musl-g++
setenv F77 $PREFIX/bin/x86_64-linux-musl-gfortran
setenv F90 $PREFIX/bin/x86_64-linux-musl-gfortran
setenv FC $PREFIX/bin/x86_64-linux-musl-gfortran
setenv FORTRAN $PREFIX/bin/x86_64-linux-musl-gfortran

if { [file exist "/usr/lib/x86_64-linux-gnu"] } {
append-path LIBRARY_PATH "/usr/lib/x86_64-linux-gnu"
}