cli: use Requires.private when cflags are requested

master
psykose 2022-08-11 13:47:32 +00:00
parent 28b5d57b98
commit 746005582f
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -1141,6 +1141,11 @@ main(int argc, char *argv[])
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE; want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
} }
if ((want_flags & PKG_CFLAGS))
{
want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
}
if ((sysroot_dir = getenv("PKG_CONFIG_SYSROOT_DIR")) != NULL) if ((sysroot_dir = getenv("PKG_CONFIG_SYSROOT_DIR")) != NULL)
{ {
const char *destdir; const char *destdir;