From f653c5726471413c332182884f64ebd816392df1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jul 2022 12:56:13 +0200 Subject: Fix bug in common .pc file generation logic (GitHub issue #198) --- libbuild2/cc/link-rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1