aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-23 14:21:42 +0900
committerOphestra <cat@gensokyo.uk>2026-10-23 14:21:42 +0900
commit555273b15f369d1c32e04a79417fff2f96fcfd3c (patch)
treeeae77765d43296ce727de2f2d5e729e8fd7ea416 /internal/rosa/state.go
parentb04cb706de8d0829cc8d94071f13e740cb5fc3f2 (diff)
internal/rosa/make: optionally omit --with-sysroot
Similar to the other autoconf-specific flags, this makes some configure scripts pretending to be autoconf unhappy. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index aba5c312..c8163ca2 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -874,7 +874,7 @@ func (s *S) getFrame() azalea.Frame {
args azalea.FArgs,
) (v any, set bool, err error) {
var attr MakeHelper
- defaults, chdir, checkEarly := true, true, true
+ defaults, chdir, checkEarly, sysroot := true, true, true, true
attr.Configure, attr.Check = []KV{}, []string{}
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("early"): &attr.Early,
@@ -887,6 +887,7 @@ func (s *S) getFrame() azalea.Frame {
k("configureName"): &attr.ConfigureName,
k("forceAutoconf"): &attr.ForceAutoconf,
k("defaultName"): &attr.DefaultName,
+ k("sysroot"): &sysroot,
k("autoTarget"): &attr.AutoTarget,
k("configure"): &attr.Configure,
k("host"): &attr.Host,
@@ -903,6 +904,7 @@ func (s *S) getFrame() azalea.Frame {
attr.SkipConfigure = attr.Configure == nil
attr.SkipCheck = attr.Check == nil
attr.SkipCheckEarly = !checkEarly
+ attr.OmitSysroot = !sysroot
v = &attr
set = true