summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild/pkg-config.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/pkg-config.sh b/build/pkg-config.sh
new file mode 100755
index 000000000..7c021dbce
--- /dev/null
+++ b/build/pkg-config.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+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 "$@"