From ff779219e19ada38f52b0402e1c572862cf8e9cb Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 2 May 2012 22:01:17 +0000 Subject: [PATCH] main: if --static and --libs is requested, use PKGF_SEARCH_PRIVATE when printing linker flags --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 46f1f29..0b758e5 100644 --- a/main.c +++ b/main.c @@ -227,7 +227,7 @@ pkg_queue_walk(pkg_queue_t *head) if (want_libs) { 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)