summaryrefslogtreecommitdiff
path: root/build/pkg-config.sh
blob: 18ec25be69bd100b4fe8ee9116513ef857c0944f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

# 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.

BIN=`dirname $0`
ROOT=`dirname "$BIN"`

export PKG_CONFIG_DIR=
export PKG_CONFIG_LIBDIR="${ROOT}/lib/pkgconfig:${ROOT}/share/pkgconfig"

exec /usr/bin/pkg-config "$@"