diff --git a/.cargo/config b/.cargo/config index 69c4db47dcee085641f5b1284dfca89dd42e264a..424d6606528d780d207f9de858e7ef1e90884ed5 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 0000000000000000000000000000000000000000..c1eb83233d2d0577c6c18f71fef4378f80a3e784 --- /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 "$@"