From 9bd84ff006a29c935ca761c9ebb8ae50106a429f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 22 Oct 2026 23:25:47 +0900 Subject: 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 --- internal/rosa/make.go | 8 +++++++- internal/rosa/package/qemu/package.az | 2 ++ internal/rosa/state.go | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) 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, -- cgit v1.3.1