Bug 2326

Summary: Look for pkgconfig subdirs for all paths in /etc/ld.so.conf
Product: pkg-config Reporter: Linus Walleij <linus.walleij>
Component: srcAssignee: Scott James Remnant <scott>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Linus Walleij 2005-01-19 03:50:51 UTC
Since the normal way of telling your operating system where to look
for libraries is (on Linux, mind you) to modify /etc/ld.so.conf and
friends (like included files in /etc/ld.so.conf.d) and since pkgconfig
will look in /lib hierarchies like /usr/lib/pkgconfig, I believe that
the correct behaviour of pkgconfig would be to try to retrieve library
locations from /etc/ld.so.conf (+friends) and try to append "pkgconfig"
after these paths so as to locate libraries in exotic places.

Currently, if you put a library in /usr/local/lib par example, and then
the .pc file goes into /usr/local/lib/pkgconfig, then modifying the
/etc/ld.so.conf file does not help pkgconfig to find the .pc file.

IMO it should.
Comment 1 Tollef Fog Heen 2005-03-18 00:05:14 UTC
/etc/ld.so.conf is only used by the runtime linker (ld-linux.so), not by ld and
gcc.  I don't think having pkg-config care about the runtime paths makes sense.

However, pkg-config is going to grow a feature where you can specify a list of
directories to look for .pc files, so you should be able to specify the search
path when building.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.