From 35d04957696d82c1991802746d0c666752f4cb5d Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 16 Nov 2025 13:11:11 -0700 Subject: [PATCH] Add i586-unknown-redox-pkg-config --- bin/i586-unknown-redox-pkg-config | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/i586-unknown-redox-pkg-config diff --git a/bin/i586-unknown-redox-pkg-config b/bin/i586-unknown-redox-pkg-config new file mode 100755 index 00000000..18e9816e --- /dev/null +++ b/bin/i586-unknown-redox-pkg-config @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +export PKG_CONFIG_SYSROOT_DIR="${COOKBOOK_SYSROOT}" +export PKG_CONFIG_LIBDIR="${PKG_CONFIG_SYSROOT_DIR}/lib/pkgconfig" +export PKG_CONFIG_PATH="${PKG_CONFIG_SYSROOT_DIR}/share/pkgconfig" + +if [ -n "${COOKBOOK_DYNAMIC}" ] +then + exec pkg-config "$@" +else + exec pkg-config --static "$@" +fi