From b04cb706de8d0829cc8d94071f13e740cb5fc3f2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 23 Oct 2026 05:43:48 +0900 Subject: 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 --- internal/rosa/package/hakurei.az | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/rosa') 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 = [ -- cgit v1.3.1