From 4e449bd45f70071736ede23801bf97e339ac9a10 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 8 Aug 2022 09:42:01 +0000 Subject: [PATCH] cli: do not search requires.private for --libs unless --static --- cli/main.c | 3 +++ 1 file changed, 3 insertions(+) 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); }