diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-23 04:16:07 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-23 04:16:07 +0900 |
| commit | 54466f0e43b858f36cace47ceb3cab121614f837 (patch) | |
| tree | 8dea2c09ea020fff8dfb05a3d573cc7bf3739085 /internal/rosa | |
| parent | 609f6504e801096bb6f657b768bb5d1f49199080 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
| -rw-r--r-- | internal/rosa/make.go | 7 | ||||
| -rw-r--r-- | internal/rosa/meson.go | 5 | ||||
| -rw-r--r-- | internal/rosa/package/pcre2.az | 1 |
3 files changed, 9 insertions, 4 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' ` } diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go index 59029595..33cbb70a 100644 --- a/internal/rosa/meson.go +++ b/internal/rosa/meson.go @@ -74,7 +74,10 @@ strip = ['llvm-strip'] [properties] sys_root = '/system/`+arch+`' -pkg_config_libdir = '/system/`+arch+`/system/lib/pkgconfig' +pkg_config_libdir = [ + '/system/`+arch+`/system/lib/pkgconfig', + '/system/`+arch+`/system/share/pkgconfig' + ] [host_machine] cpu = '`+mesonArch+`' diff --git a/internal/rosa/package/pcre2.az b/internal/rosa/package/pcre2.az index f7600bc7..e964ced0 100644 --- a/internal/rosa/package/pcre2.az +++ b/internal/rosa/package/pcre2.az @@ -26,5 +26,4 @@ package pcre2 { ]; inputs = [ zlib ]; - runtime = [ zlib ]; } |
