[PATCH] Add PKG_CONFIG_PATH to run.in script.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 run.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/run.in b/run.in
index 1a379dd..cbef61a 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"
-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]