This commit is contained in:
2026-05-17 23:23:13 +02:00
parent a23e2c83d1
commit 695f30d678
25 changed files with 6000 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
name = "musl"
version = "1.2.6"
revision = 1
description = "Musl C library"
license = "MIT"
source = {
"url": f"https://musl.libc.org/releases/musl-{version}.tar.gz",
"sha256": "d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a",
"strip_components": 1,
}
host_deps = ["binutils", "gcc"]
def configure(ctx):
triple = ctx.options["target_triple"]
ctx.run(
[
ctx.source_dir + "/configure",
"--prefix=/usr",
"--syslibdir=/lib",
"--target=" + triple,
],
env = {
"CC": triple + "-gcc",
"CFLAGS": ctx.options["cflags"],
"LDFLAGS": ctx.options["ldflags"],
},
)
build = autotools_build
install = autotools_install