internal/rosa: musl-obstack artifact

Yet another nonstandard glibc extension used by elfutils.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-02-20 21:34:59 +09:00
parent 273068b90c
commit c2456e252c
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newMuslObstack() pkg.Artifact {
const (
version = "1.2.3"
checksum = "tVRY_KjIlkkMszcaRlkKdBVQHIXTT_T_TiMxbwErlILXrOBosocg8KklppZhNdCG"
)
return t.NewViaMake("musl-obstack", version, pkg.NewHTTPGetTar(
nil, "https://github.com/void-linux/musl-obstack/archive/refs/tags/"+
"v"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
), &MakeAttr{
Writable: true,
Env: []string{
"CC=cc -fPIC",
},
ScriptEarly: `
cd /usr/src/musl-obstack
./bootstrap.sh
`,
},
t.Load(M4),
t.Load(Perl),
t.Load(Autoconf),
t.Load(Automake),
t.Load(Libtool),
t.Load(PkgConfig),
)
}
func init() { artifactsF[MuslObstack] = Toolchain.newMuslObstack }