Do not ignore PKG_CONFIG_PATH if a direct path to a .pc file is supplied
parent
1d0f990afa
commit
83877eb2f7
4
pkg.c
4
pkg.c
|
@ -461,6 +461,8 @@ pkg_find(const char *name, unsigned int flags)
|
|||
pkg_node_t *n;
|
||||
FILE *f;
|
||||
|
||||
pkg_dir_list_build(flags);
|
||||
|
||||
/* name might actually be a filename. */
|
||||
if (str_has_suffix(name, PKG_CONFIG_EXT))
|
||||
{
|
||||
|
@ -485,8 +487,6 @@ pkg_find(const char *name, unsigned int flags)
|
|||
}
|
||||
}
|
||||
|
||||
pkg_dir_list_build(flags);
|
||||
|
||||
PKG_FOREACH_LIST_ENTRY(pkg_dir_list.head, n)
|
||||
{
|
||||
pkg_path_t *pkg_path = n->data;
|
||||
|
|
Loading…
Reference in New Issue