Add i686 cargo config and pkg config

This commit is contained in:
Jeremy Soller 2022-07-26 17:23:19 -06:00
parent 8247c8830d
commit 9de09376b6
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,10 @@
linker = "aarch64-unknown-redox-gcc"
rustflags = []
[target.i686-unknown-redox]
linker = "i686-unknown-redox-gcc"
rustflags = []
[target.x86_64-unknown-redox]
linker = "x86_64-unknown-redox-gcc"
rustflags = []

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
export PKG_CONFIG_SYSROOT_DIR="${COOKBOOK_RECIPE}/sysroot"
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_SYSROOT_DIR}/lib/pkgconfig"
export PKG_CONFIG_PATH="${PKG_CONFIG_SYSROOT_DIR}/share/pkgconfig"
exec pkg-config --static "$@"