version = "1.2.6" revision = 1 description = "Small, standards-conformant implementation of libc" license = "MIT" source = tarball( url=f"https://musl.libc.org/releases/musl-{version}.tar.gz", sha256="d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a", ) host_deps = ["binutils", "gcc-bootstrap"] build_if = profile["libc"] == "musl" def configure(self): self.run( self.source_dir / "configure", f"--target={self.triple}", f"--prefix={self.profile['prefix']}", "--syslibdir=/lib", env={ "CC": f"{self.triple}-gcc", "CFLAGS": self.profile["cflags"], "LDFLAGS": self.profile["ldflags"], }, ) _, build, install = autotools()