Bug 2326 - Look for pkgconfig subdirs for all paths in /etc/ld.so.conf
Summary: Look for pkgconfig subdirs for all paths in /etc/ld.so.conf
Status: RESOLVED NOTABUG
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Scott James Remnant
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 03:50 UTC by Linus Walleij
Modified: 2005-03-17 05:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.