From 54466f0e43b858f36cace47ceb3cab121614f837 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 23 Oct 2026 04:16:07 +0900 Subject: internal/rosa: set pkg-config libdir We do not want to put up with the pkg-config wrappers. This does what the wrappers would have done. CMake does this automatically, but not meson and autotools. Signed-off-by: Ophestra --- internal/rosa/make.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/rosa/make.go') 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' ` } -- cgit v1.3.1