Reuse static solution for general solution

master
Kai Pastor 2024-02-23 15:18:08 +01:00 committed by Ariadne Conill
parent 883b57df47
commit e2a8080cbf
1 changed files with 0 additions and 12 deletions

View File

@ -1576,20 +1576,8 @@ cleanup3:
printf(" ");
if (!(want_flags & PKG_STATIC))
{
pkgconf_client_set_flags(&pkg_client, pkg_client.flags & ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE);
/* redo the solution for the library set: free the solution itself, and any cached graph nodes */
pkgconf_solution_free(&pkg_client, &world);
pkgconf_cache_free(&pkg_client);
if (!pkgconf_queue_solve(&pkg_client, &pkgq, &world, maximum_traverse_depth))
{
ret = EXIT_FAILURE;
goto out;
}
}
apply_libs(&pkg_client, &world, NULL, 2);
}