.cargo/config.toml + aarch64-pkg-config wrapper are load-bearing for the cross build (CI artifact job + local build-cross.sh both depend on them); were gitignored before. souveraine.service is the systemd user unit the packaging/deploy scripts template.
10 lines
567 B
Shell
Executable file
10 lines
567 B
Shell
Executable file
#!/bin/bash
|
|
# ponytail: cross pkg-config wrapper for aarch64-unknown-linux-gnu.
|
|
# cargo's [env] block doesn't reliably reach build-script pkg-config probes,
|
|
# so alsa-sys's built-in cross guard trips. This wrapper sets the vars itself
|
|
# and is referenced via PKG_CONFIG in .cargo/config.toml — every pkg-config
|
|
# probe in the tree (alsa-sys today, any future -sys crate) goes through it.
|
|
export PKG_CONFIG_ALLOW_CROSS=1
|
|
export PKG_CONFIG_LIBDIR=/usr/aarch64-linux-gnu/lib/pkgconfig
|
|
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu
|
|
exec /usr/bin/pkg-config "$@"
|