first
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user