32 lines
738 B
Python
32 lines
738 B
Python
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):
|
|
ctx.run(
|
|
[
|
|
ctx.source_dir + "/configure",
|
|
"--prefix=/usr",
|
|
"--syslibdir=/lib",
|
|
"--target=" + OPTIONS.target_triple,
|
|
],
|
|
env = {
|
|
"CC": OPTIONS.target_triple + "-gcc",
|
|
"CFLAGS": OPTIONS.cflags,
|
|
"LDFLAGS": OPTIONS.ldflags,
|
|
},
|
|
)
|
|
|
|
build = autotools_build
|
|
install = autotools_install
|