Support dynamic linking in pkg-config wrapper

This commit is contained in:
Jeremy Soller 2025-04-11 08:54:37 -06:00
parent 6873df013e
commit f52180899f
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
4 changed files with 24 additions and 4 deletions

View File

@ -4,4 +4,9 @@ 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"
exec pkg-config --static "$@"
if [ -n "${COOKBOOK_PREFER_STATIC}" ]
then
exec pkg-config --static "$@"
else
exec pkg-config "$@"
fi

View File

@ -4,4 +4,9 @@ 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"
exec pkg-config --static "$@"
if [ -n "${COOKBOOK_PREFER_STATIC}" ]
then
exec pkg-config --static "$@"
else
exec pkg-config "$@"
fi

View File

@ -4,4 +4,9 @@ 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"
exec pkg-config --static "$@"
if [ -n "${COOKBOOK_PREFER_STATIC}" ]
then
exec pkg-config --static "$@"
else
exec pkg-config "$@"
fi

View File

@ -4,4 +4,9 @@ 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"
exec pkg-config --static "$@"
if [ -n "${COOKBOOK_PREFER_STATIC}" ]
then
exec pkg-config --static "$@"
else
exec pkg-config "$@"
fi