cli: do not search requires.private for --libs unless --static

pull/243/head
Ariadne Conill 2022-08-08 09:42:01 +00:00
parent 69f630aadc
commit 4e449bd45f
1 changed files with 3 additions and 0 deletions

View File

@ -1461,6 +1461,9 @@ cleanup3:
if ((want_flags & PKG_LIBS)) if ((want_flags & PKG_LIBS))
{ {
if (!(want_flags & PKG_STATIC))
pkgconf_client_set_flags(&pkg_client, pkg_client.flags & ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE);
apply_libs(&pkg_client, &world, NULL, maximum_traverse_depth); apply_libs(&pkg_client, &world, NULL, maximum_traverse_depth);
} }