diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-23 05:43:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-23 05:43:48 +0900 |
| commit | b04cb706de8d0829cc8d94071f13e740cb5fc3f2 (patch) | |
| tree | f524863044c7a22468fede5eaadafad107d9bffd /internal | |
| parent | e10c90b58c2a7d92c42b27054ecc783b64585bc5 (diff) | |
cmd/dist: cross-compile via clang
The cross-compiled sysroot can now be provided by internal/rosa.
Unfortunately pkg-config still had to be configured externally to avoid
making any assumptions about the prefix.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/package/hakurei.az | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/rosa/package/hakurei.az b/internal/rosa/package/hakurei.az index 31e38686..04d6078f 100644 --- a/internal/rosa/package/hakurei.az +++ b/internal/rosa/package/hakurei.az @@ -99,6 +99,13 @@ package hakurei-dist { exec = generic { chdir = false; + cross = ` +export HAKUREI_ARCH='`+arch+`' +export HAKUREI_SYSROOT='/system/`+arch+`' + +export PKG_CONFIG_SYSROOT_DIR='/system/`+arch+`' +export PKG_CONFIG_LIBDIR='/system/`+arch+`/system/lib/pkgconfig:/system/`+arch+`/system/share/pkgconfig' +`; build = ` NAME=make`; check = ` @@ -113,6 +120,8 @@ DESTDIR=/work "./${NAME}.sh" pkgconf, net-tools, acl, + wayland, + wayland-protocols, ]; inputs = [ |
