diff --git a/cli/main.c b/cli/main.c index e7b2e70..50215fb 100644 --- a/cli/main.c +++ b/cli/main.c @@ -1461,6 +1461,9 @@ cleanup3: 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); }