2017-12-29 17:12:55 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-02-22 12:39:59 +01:00
|
|
|
# This is a wrapper for pkg-config which helps with cross-compiling;
|
|
|
|
# it sets up environment variables to pkg-config searches for
|
|
|
|
# libraries in the sysroot where a copy of this script is located.
|
|
|
|
|
2017-12-29 17:12:55 +01:00
|
|
|
BIN=`dirname $0`
|
|
|
|
ROOT=`dirname "$BIN"`
|
|
|
|
|
|
|
|
export PKG_CONFIG_DIR=
|
|
|
|
export PKG_CONFIG_LIBDIR="${ROOT}/lib/pkgconfig:${ROOT}/share/pkgconfig"
|
|
|
|
|
2023-12-21 06:23:18 +01:00
|
|
|
exec pkg-config "$@"
|