diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-20 20:49:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-20 21:11:16 +0900 |
| commit | b61421e9930f114c25f0af17ffbb07d1ca4189ac (patch) | |
| tree | 32e55058425f9b6790b4b4bc1cd89e1bc57928c6 /internal/rosa/make.go | |
| parent | d42b67f47f4779f86133087ee9bb26219e536de9 (diff) | |
internal/rosa: remove triple from environment
This is cleaner and prepares for cross-compilation support.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
| -rw-r--r-- | internal/rosa/make.go | 8 |
1 files changed, 5 insertions, 3 deletions
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 } |
