Summary: | man page PKG_CONFIG_PATH vs. PKG_CONFIG_LIBDIR | ||
---|---|---|---|
Product: | pkg-config | Reporter: | Liviu Ionescu <ilg> |
Component: | src | Assignee: | pkg-config |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Liviu Ionescu
2015-02-05 09:35:57 UTC
You're understanding is correct. Basically the search path is $PKG_CONFIG_PATH followed by the built-in defaults. You can override the built-in default by specifying PKG_CONFIG_LIBDIR. I actually just opened bug89268 to track changing this to PKG_CONFIG_SYSTEM_PATH to be clearer. Do you have any concrete suggestions on how the documentation could be changed to be clearer? > concrete suggestions
what about:
PKG_CONFIG_PATH
If defined, this variable defines a colon-separated (on Windows, semicolon-separated) list of custom folders to be searched for .pc files **before** the system locations.
PKG_CONFIG_LIBDIR
This variable defines a colon-separated (on Windows, semicolon-separated) list of folders to replace the default pkg-config search path, which includes the system libraries. The default search path depends on distribution and is usually configured when the pkg-config executable is compiled. PKG_CONFIG_LIBDIR is intended for cross builds when it should point to the cross libraries, to avoid referring native libraries in cross application.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/6. |
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.