From 84aa1c11f133119a801bb7c8b7fedcbaff40bc48 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 2 May 2012 23:20:54 +0000 Subject: [PATCH] main: now that we have global_traverse_flags, clean up --static handling --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 5739b43..6b95786 100644 --- a/main.c +++ b/main.c @@ -230,7 +230,7 @@ pkg_queue_walk(pkg_queue_t *head) if (want_libs) { wanted_something++; - pkg_traverse(&world, print_libs, NULL, maximum_traverse_depth, global_traverse_flags | (want_static ? PKGF_SEARCH_PRIVATE : PKGF_NONE)); + pkg_traverse(&world, print_libs, NULL, maximum_traverse_depth, global_traverse_flags); } if (want_variable) @@ -346,7 +346,10 @@ main(int argc, char *argv[]) } if (want_static) + { maximum_traverse_depth++; + global_traverse_flags |= PKGF_SEARCH_PRIVATE; + } if (want_env_only) global_traverse_flags |= PKGF_ENV_ONLY;