diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-22 23:25:47 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-22 23:25:47 +0900 |
| commit | 9bd84ff006a29c935ca761c9ebb8ae50106a429f (patch) | |
| tree | 819bd296aa7a4e92d3723c835229ad81d3dd09f6 | |
| parent | 8341f6ed26bb8b9e4269e594d2f6b864d534546b (diff) | |
internal/rosa/make: optionally omit target flag
Similar to the previous change, this does not work on some configure
scripts pretending to be autoconf.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/make.go | 8 | ||||
| -rw-r--r-- | internal/rosa/package/qemu/package.az | 2 | ||||
| -rw-r--r-- | internal/rosa/state.go | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go index 0747d850..71eeaa25 100644 --- a/internal/rosa/make.go +++ b/internal/rosa/make.go @@ -41,6 +41,8 @@ type MakeHelper struct { Build string // Do not clear program prefix/suffix. DefaultName bool + // Omit the target argument. + AutoTarget bool // Use the dependency-free [GenericHelper] make. Early bool @@ -149,8 +151,12 @@ export CXX='clang++ --target=` + target + ` -isysroot=/system/` + arch + `' --program-suffix=''` } configure += ` \ - --host=` + host + ` \ + --host=` + host + + if !attr.AutoTarget { + configure += ` \ --target=` + host + } } if attr.Build != "" { diff --git a/internal/rosa/package/qemu/package.az b/internal/rosa/package/qemu/package.az index 7252c4d8..5d8e364b 100644 --- a/internal/rosa/package/qemu/package.az +++ b/internal/rosa/package/qemu/package.az @@ -38,6 +38,8 @@ sed -i \ `; exec = make { + defaultName = true; + autoTarget = true; configure = { "disable-download"; "disable-docs"; diff --git a/internal/rosa/state.go b/internal/rosa/state.go index 53e38c49..592d6018 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -887,6 +887,7 @@ func (s *S) getFrame() azalea.Frame { k("configureName"): &attr.ConfigureName, k("forceAutoconf"): &attr.ForceAutoconf, k("defaultName"): &attr.DefaultName, + k("autoTarget"): &attr.AutoTarget, k("configure"): &attr.Configure, k("host"): &attr.Host, k("build"): &attr.Build, |
