From d1fbcace59846d55c66e741dbc3d59e20ae3e5cf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Jun 2019 12:28:05 +0200 Subject: Fix C/C++ link rule matching ambiguity by seeing-through utility libraries --- build2/cc/common.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc/common.cxx') diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index b4b0a6d..fa774d7 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -485,7 +485,7 @@ namespace build2 // If this is lib{}/libu*{}, pick appropriate member. // if (const libx* l = xt->is_a ()) - xt = &link_member (*l, a, li); // Pick lib*{e,a,s}{}. + xt = link_member (*l, a, li); // Pick lib*{e,a,s}{}. return xt->as (); } -- cgit v1.1