Do not ignore PKG_CONFIG_PATH if a direct path to a .pc file is supplied

feature/tap-sh
Baptiste Daroussin 2013-03-20 17:52:17 +01:00
parent 1d0f990afa
commit 83877eb2f7
1 changed files with 2 additions and 2 deletions

4
pkg.c
View File

@ -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;