aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-02 19:50:20 +0900
committerOphestra <cat@gensokyo.uk>2026-02-02 19:52:08 +0900
commit3226dc44dcfc6f14e0f28641adcb1dd671357966 (patch)
tree9a25cd9f8fdca16bb3401aca9ffd0b0d0fe54066
parent9f98d12ad892235cf2b835bdf92d4313fe22661b (diff)
internal/rosa/gnu: libtool artifact
Required when generating autotools build systems. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/all.go2
-rw-r--r--internal/rosa/gnu.go20
2 files changed, 22 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index f5436b28..a8c1e965 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -35,6 +35,7 @@ const (
Libexpat
Libffi
Libgd
+ Libtool
Libseccomp
Libxml2
M4
@@ -119,6 +120,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
"libxml2": Libxml2,
"libffi": Libffi,
"libgd": Libgd,
+ "libtool": Libtool,
"m4": M4,
"make": Make,
"meson": Meson,
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 874fbae4..ed127b09 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -99,6 +99,26 @@ test_disable '#!/bin/sh' t/pr9.sh
}
func init() { artifactsF[Automake] = Toolchain.newAutomake }
+func (t Toolchain) newLibtool() pkg.Artifact {
+ const (
+ version = "2.5.4"
+ checksum = "pa6LSrQggh8mSJHQfwGjysAApmZlGJt8wif2cCLzqAAa2jpsTY0jZ-6stS3BWZ2Q"
+ )
+ return t.NewViaMake("libtool", version, pkg.NewHTTPGetTar(
+ nil, "https://ftpmirror.gnu.org/gnu/libtool/libtool-"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ ), &MakeAttr{
+ Env: []string{
+ "TESTSUITEFLAGS=" + strconv.Itoa(runtime.NumCPU()),
+ },
+ },
+ t.Load(M4),
+ t.Load(Diffutils),
+ )
+}
+func init() { artifactsF[Libtool] = Toolchain.newLibtool }
+
func (t Toolchain) newGzip() pkg.Artifact {
const (
version = "1.14"