aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/doc.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-11 21:59:18 +0900
committerOphestra <cat@gensokyo.uk>2026-11-12 12:44:39 +0900
commitac4cec1625da50d6abd9fca40446e7f75aa5bd37 (patch)
tree22b3789634008a43277952abea766be4f278e4f7 /internal/rosa/doc.go
parente28bac0fe480c065e653b847d1b54f3e3d712156 (diff)
internal/rosa: set common cross-compile environment
This change avoids duplicating this piece of code all over the place. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/doc.go')
-rw-r--r--internal/rosa/doc.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/internal/rosa/doc.go b/internal/rosa/doc.go
index 9c61a751..313d4f17 100644
--- a/internal/rosa/doc.go
+++ b/internal/rosa/doc.go
@@ -163,16 +163,15 @@ declared at the top level:
// whether to replace /usr/bin/ with a symlink to /bin/
populateUsrBin = false;
+ // whether to set common cross-compilation environment variables
+ ccommon = true;
+
// build system helper, see section "Build system helpers"
exec = generic {
chdir = false;
cross = `
export HAKUREI_ARCH='`+arch+`'
export HAKUREI_SYSROOT='`+prefix+`/`+arch+`'
-
- export PKG_CONFIG_SYSROOT_DIR='`+prefix+`/`+arch+`'
- export PKG_CONFIG_LIBDIR='`+prefix+`/`+arch+prefix+`/lib/pkgconfig:`+
- prefix+`/`+arch+``+prefix+`/share/pkgconfig'
`;
build = `
NAME=make`;
@@ -399,10 +398,6 @@ scripts too specific to fit into any other [Helper] implementation.
cross = `
export HAKUREI_ARCH='`+arch+`'
export HAKUREI_SYSROOT='`+prefix+`/`+arch+`'
-
- export PKG_CONFIG_SYSROOT_DIR='`+prefix+`/`+arch+`'
- export PKG_CONFIG_LIBDIR='`+prefix+`/`+arch+prefix+`/lib/pkgconfig:`+
- prefix+`/`+arch+``+prefix+`/share/pkgconfig'
`;
// runs first, or after cross if cross-compiling