aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/make.go
diff options
context:
space:
mode:
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 + `'`
}