From b61421e9930f114c25f0af17ffbb07d1ca4189ac Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 20 Oct 2026 20:49:05 +0900 Subject: internal/rosa: remove triple from environment This is cleaner and prepares for cross-compilation support. Signed-off-by: Ophestra --- internal/rosa/make.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'internal/rosa/make.go') diff --git a/internal/rosa/make.go b/internal/rosa/make.go index 1c0e52d6..a41db646 100644 --- a/internal/rosa/make.go +++ b/internal/rosa/make.go @@ -103,15 +103,18 @@ func (attr *MakeHelper) script(t Toolchain, name string) string { } var configure string + target := t.triple() if !attr.SkipConfigure { - configure = attr.ConfigureName + configure += attr.ConfigureName if configure == "" { configure += `/usr/src/` + name + `/configure` } if attr.ForceAutoconf || attr.ConfigureName == "" { configure += ` \ --prefix=/system` - host := `"${ROSA_TRIPLE}"` + host := target + build := host + if attr.Host != "" { host = attr.Host } @@ -120,7 +123,6 @@ func (attr *MakeHelper) script(t Toolchain, name string) string { --host=` + host } - build := `"${ROSA_TRIPLE}"` if attr.Build != "" { build = attr.Build } -- cgit v1.3.1