main: if --static and --libs is requested, use PKGF_SEARCH_PRIVATE when printing linker flags

feature/tap-sh
William Pitcock 2012-05-02 22:01:17 +00:00
parent 07bb6d28bc
commit ff779219e1
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -227,7 +227,7 @@ pkg_queue_walk(pkg_queue_t *head)
if (want_libs) if (want_libs)
{ {
wanted_something++; wanted_something++;
pkg_traverse(&world, print_libs, NULL, maximum_traverse_depth, PKGF_NONE); pkg_traverse(&world, print_libs, NULL, maximum_traverse_depth, want_static ? PKGF_SEARCH_PRIVATE : PKGF_NONE);
} }
if (want_variable) if (want_variable)