aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/make.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/make.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/make.go')
-rw-r--r--internal/rosa/make.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index e127fe02..d8ff9a13 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
+ // Do not pass sysroot to autoconf configure script.
+ OmitSysroot bool
// Omit the target argument.
AutoTarget bool
@@ -153,7 +155,7 @@ export PKG_CONFIG_LIBDIR='` + sysroot + `/system/lib/pkgconfig:` + sysroot + `/s
--program-prefix='' \
--program-suffix=''`
}
- if cross {
+ if !attr.OmitSysroot && cross {
configure += ` \
--with-sysroot='/system/` + arch + `'`
}