forked from ariadne/pkgconf
cli: remove redundant SEARCH_PRIVATE block
It turns out there was already a check for PKG_CFLAGS being requested, but the check was busted because PKG_CFLAGS is a combined-or of all of the various --cflags flags. Check that PKG_CFLAGS bits are set at all on want_flags instead.master
parent
78f00da130
commit
68b5cab72d
|
@ -1136,12 +1136,7 @@ main(int argc, char *argv[])
|
|||
pkgconf_client_set_buildroot_dir(&pkg_client, builddir);
|
||||
|
||||
if ((want_flags & PKG_REQUIRES_PRIVATE) == PKG_REQUIRES_PRIVATE ||
|
||||
(want_flags & PKG_CFLAGS) == PKG_CFLAGS)
|
||||
{
|
||||
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
|
||||
}
|
||||
|
||||
if ((want_flags & PKG_CFLAGS))
|
||||
(want_flags & PKG_CFLAGS))
|
||||
{
|
||||
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue