
On Fri, Jun 17, 2005 at 06:26:56PM +0400, Vladimir Prus wrote:
Jonathan Wakely wrote:
I install them into <prefix>/lib/pkgconfig. That of course requires the PKG_CONFIG_PATH to be set. That is basically the same procedure as setting the LD_LIBRARY_PATH if libraries are installed in places not automatically looked in by the library loader.
And IMHO that's an important point, just by using a different PKG_CONFIG_PATH you can link to a completely different set of libs:
make PKG_CONFIG_PATH=$HOME/my_local_version_of_boost or make CXX=g++41 PKG_CONFIG_PATH=$HOME/boost_built_with_gcc41
I wouldn't have to change the Makefile at all for this to work.
Pretty cool, I'd say. And, BTW, does pkg-config have any documentation besides extra lean man page? I could not find any.
It's on www.freedesktop.org IIRC ... yes: http://freedesktop.org/wiki/Software_2fpkgconfig jon