main: use PKGF_MERGE_PRIVATE_FRAGMENTS

feature/tap-sh
William Pitcock 2012-05-11 20:07:45 -05:00
parent f056f1e7f6
commit 40402298ef
1 changed files with 2 additions and 3 deletions

5
main.c
View File

@ -142,12 +142,11 @@ collect_libs(pkg_t *pkg, void *data, unsigned int flags)
{ {
pkg_fragment_t **list = data; pkg_fragment_t **list = data;
pkg_fragment_t *frag; pkg_fragment_t *frag;
(void) flags;
PKG_FOREACH_LIST_ENTRY(pkg->libs, frag) PKG_FOREACH_LIST_ENTRY(pkg->libs, frag)
*list = pkg_fragment_copy(*list, frag); *list = pkg_fragment_copy(*list, frag);
if (want_static) if (flags & PKGF_MERGE_PRIVATE_FRAGMENTS)
{ {
PKG_FOREACH_LIST_ENTRY(pkg->libs_private, frag) PKG_FOREACH_LIST_ENTRY(pkg->libs_private, frag)
*list = pkg_fragment_copy(*list, frag); *list = pkg_fragment_copy(*list, frag);
@ -580,7 +579,7 @@ main(int argc, char *argv[])
} }
if (want_static) if (want_static)
global_traverse_flags |= PKGF_SEARCH_PRIVATE; global_traverse_flags |= (PKGF_SEARCH_PRIVATE | PKGF_MERGE_PRIVATE_FRAGMENTS);
if (want_env_only) if (want_env_only)
global_traverse_flags |= PKGF_ENV_ONLY; global_traverse_flags |= PKGF_ENV_ONLY;