aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/link-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-21 12:56:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-21 12:56:13 +0200
commitf653c5726471413c332182884f64ebd816392df1 (patch)
treef7b2a8cd3c3b344873cd1963069b800b01758560 /libbuild2/cc/link-rule.cxx
parent323585564fc7a5b0457926846a98493feb77f37d (diff)
Fix bug in common .pc file generation logic (GitHub issue #198)
Diffstat (limited to 'libbuild2/cc/link-rule.cxx')
-rw-r--r--libbuild2/cc/link-rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx
index c4938c9..3d899e8 100644
--- a/libbuild2/cc/link-rule.cxx
+++ b/libbuild2/cc/link-rule.cxx
@@ -1615,7 +1615,7 @@ namespace build2
// is important (see add_addhoc_member() for details).
//
if (operator>= (t.group->decl, target_decl::implied) // @@ VC14
- ? (ot == otype::a || !link_members (rs).a)
+ ? ot == (link_members (rs).a ? otype::a : otype::s)
: search_existing (ctx,
ot == otype::a
? libs::static_type