aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-01 11:39:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-01 11:39:42 +0200
commitd7424090a87cc847c2b9c1f67f06970ddc0adca0 (patch)
treee9253a5221332647348c40c781e95a1868b0228d /libbuild2/cc
parent30af663dfc7f152e208962fc033d46bd4c7b7cb2 (diff)
Ignore Provides when loading pkg-config information
Without this flag, on encountering an unknown package, libpkgconf will load *all* pkg-config files it can find in order to see if any of them provide it.
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/pkgconfig.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index de7cc73..8b064d1 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -180,6 +180,7 @@ namespace build2
//
static const int pkgconf_flags =
PKGCONF_PKG_PKGF_SIMPLIFY_ERRORS
+ | PKGCONF_PKG_PKGF_SKIP_PROVIDES
#ifdef PKGCONF_PKG_PKGF_DONT_MERGE_SPECIAL_FRAGMENTS
| PKGCONF_PKG_PKGF_DONT_MERGE_SPECIAL_FRAGMENTS
#endif