diff --git a/.cargo/config b/.cargo/config index 69c4db47..424d6606 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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 = [] diff --git a/bin/i686-unknown-redox-pkg-config b/bin/i686-unknown-redox-pkg-config new file mode 100755 index 00000000..c1eb8323 --- /dev/null +++ b/bin/i686-unknown-redox-pkg-config @@ -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 "$@"