cli: remove redundant SEARCH_PRIVATE block
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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.pull/244/head
parent
78f00da130
commit
68b5cab72d
|
@ -1136,12 +1136,7 @@ main(int argc, char *argv[])
|
||||||
pkgconf_client_set_buildroot_dir(&pkg_client, builddir);
|
pkgconf_client_set_buildroot_dir(&pkg_client, builddir);
|
||||||
|
|
||||||
if ((want_flags & PKG_REQUIRES_PRIVATE) == PKG_REQUIRES_PRIVATE ||
|
if ((want_flags & PKG_REQUIRES_PRIVATE) == PKG_REQUIRES_PRIVATE ||
|
||||||
(want_flags & PKG_CFLAGS) == PKG_CFLAGS)
|
(want_flags & PKG_CFLAGS))
|
||||||
{
|
|
||||||
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((want_flags & PKG_CFLAGS))
|
|
||||||
{
|
{
|
||||||
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
|
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue