aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/make.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-25 10:31:45 +0900
committerOphestra <cat@gensokyo.uk>2026-05-25 10:31:45 +0900
commit8ca70550abee1f3085b13a8f645152a11b59b306 (patch)
treef8d115712b741c92d0c62ec53904f880bad36999 /internal/rosa/make.go
parent7eebf49b98e72b4b1966b1d1e78910a643514ece (diff)
internal/rosa/package: db
For iproute2. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
-rw-r--r--internal/rosa/make.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index d6f1f0b9..0dab3a43 100644
--- a/internal/rosa/make.go
+++ b/internal/rosa/make.go
@@ -28,6 +28,8 @@ type MakeHelper struct {
SkipConfigure bool
// Alternative name for the configure script.
ConfigureName string
+ // Add autoconf arguments regardless of ConfigureName.
+ ForceAutoconf bool
// Flags passed to the configure script.
Configure []KV
// Host target triple, zero value is equivalent to the Rosa OS triple.
@@ -100,9 +102,11 @@ func (attr *MakeHelper) script(t Toolchain, name string) string {
if !attr.SkipConfigure {
configure = attr.ConfigureName
if configure == "" {
- configure += `/usr/src/` + name + `/configure \
+ configure += `/usr/src/` + name + `/configure`
+ }
+ if attr.ForceAutoconf || attr.ConfigureName == "" {
+ configure += ` \
--prefix=/system`
-
host := `"${ROSA_TRIPLE}"`
if attr.Host != "" {
host = attr.Host