On 03/24/2014 03:49 AM, Daniel P. Berrange wrote:
>>>>> NACK, setting pkg-config already takes care of
this. See the
>>>>> build-many.sh scrpit attached to this mail which demonstrates
>>>>> use of PKG_CONFIG_PATH to build against every version of libvirt
>>>>> back to 0.9.11
>
> Is there a way to point pkg-config at an in-tree uninstalled libvirt?
That's not going to do anything because the .pc file will still point
to the install location. You could however create a completely separate
libvirt.pc file just for in-tree usage that pointed to stuff in the
$build_dir, and then set PKG_CONFNIG_PATH to point to the directory
containing that .pc file instead of the real one.
Interesting idea; I'll play with it, and if I get it working for my
setup, I'll post a patch to the README that demonstrates a sample .pc
file for others to tweak.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org