summaryrefslogtreecommitdiff
path: root/run.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2014-06-26 11:53:20 +0100
committerDaniel P. Berrange <berrange@redhat.com>2014-06-26 14:32:35 +0100
commit78c09530bae8f7d6975a7cb97f0c7431c486b387 (patch)
treef54f48c1826b4b7e946102386c56e054988f9409 /run.in
parentadae3f9705a93b7626fa8ab62d81cd8a53fcee3b (diff)
downloadlibvirt-78c09530bae8f7d6975a7cb97f0c7431c486b387.tar.gz
Add PKG_CONFIG_PATH to run.in script.
Allow people to build external bindings using the 'run' script by defining the PKG_CONFIG_PATH var in it. eg to build Python you could do ../libvirt/run python setup.py build Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'run.in')
-rw-r--r--run.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/run.in b/run.in
index 1a379ddf37..cbef61a674 100644
--- a/run.in
+++ b/run.in
@@ -53,6 +53,13 @@ else
fi
export LD_LIBRARY_PATH
+if [ -z "$PKG_CONFIG_PATH" ]; then
+ PKG_CONFIG_PATH="$b/src"
+else
+ PKG_CONFIG_PATH="$b/src:$PKG_CONFIG_PATH"
+fi
+export PKG_CONFIG_PATH
+
export LIBVIRT_DRIVER_DIR="$b/src/.libs"
export LIBVIRT_LOCK_MANAGER_PLUGIN_DIR="$b/src/.libs"
export VIRTLOCKD_PATH="$b/src"