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.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index c499de1e..e127fe02 100644
--- a/internal/rosa/make.go
+++ b/internal/rosa/make.go
@@ -116,13 +116,16 @@ func (attr *MakeHelper) script(t Toolchain, name string) string {
attr = new(MakeHelper)
}
cross, arch := t.cross(), t.Arch()
+ sysroot := "/system/" + arch
var configure string
target := t.triple()
if cross {
configure += `
-export CC='clang --target=` + target + ` --sysroot=/system/` + arch + `'
-export CXX='clang++ --target=` + target + ` --sysroot=/system/` + arch + `'
+export CC='clang --target=` + target + ` --sysroot=` + sysroot + `'
+export CXX='clang++ --target=` + target + ` --sysroot=` + sysroot + `'
+export PKG_CONFIG_SYSROOT_DIR='` + sysroot + `'
+export PKG_CONFIG_LIBDIR='` + sysroot + `/system/lib/pkgconfig:` + sysroot + `/system/share/pkgconfig'
`
}