build: make aarch64 linker sysroot-safe
This commit is contained in:
parent
e5813ab6c9
commit
ffa8b498a3
4 changed files with 69 additions and 11 deletions
|
|
@ -4,7 +4,8 @@
|
|||
# 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.
|
||||
SYSROOT="${SOUVERAINE_AARCH64_SYSROOT:-/usr/aarch64-linux-gnu}"
|
||||
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
|
||||
export PKG_CONFIG_LIBDIR="$SYSROOT/usr/lib/pkgconfig"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
|
||||
exec /usr/bin/pkg-config "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue