diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-09-05 17:36:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-09-05 17:36:20 +0200 |
commit | 42131c57e7bc35765d94446f0be356bbceaf525b (patch) | |
tree | cc32bb5b2a43ce3bd6aac336cc88b9f26db15488 /build2/cc/common.cxx | |
parent | 62d85f3c6f9ca72039a122f84b18bd9d56dfa4aa (diff) |
Only consider common .pc file for binless variant if there is no binfull
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r-- | build2/cc/common.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index b20c2d8..6a1698e 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -750,7 +750,11 @@ namespace build2 if (na || ns) { - pair<path, path> r (pkgconfig_search (d, p.proj, name)); + // Only consider the common .pc file if we can be sure there + // is no binfull variant. + // + pair<path, path> r ( + pkgconfig_search (d, p.proj, name, na && ns /* common */)); if (na && !r.first.empty ()) { |