From 7ee735c0a99b29979594920262db13b4939b3c2c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Oct 2021 08:36:29 +0200 Subject: Verify libraries and targets they are linked to a for-install-compatible --- libbuild2/cc/common.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/cc/common.cxx') diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index b3a5724..09a1752 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -92,6 +92,7 @@ namespace build2 const small_vector, 2>&, // Library "name". lflags, // Link flags. + const string* type, // cc.type bool sys)>& proc_lib, // System library? const functionback (), proc_lib_name, lf, s)) + if (!proc_lib (&chain->back (), proc_lib_name, lf, t, s)) break; } @@ -459,7 +460,7 @@ namespace build2 proc_lib_name.push_back (i->value); } - proc_lib (nullptr, proc_lib_name, 0, r.second); + proc_lib (nullptr, proc_lib_name, 0, nullptr, r.second); continue; } } @@ -552,7 +553,7 @@ namespace build2 proc_lib_name.push_back (*i); } - proc_lib (nullptr, proc_lib_name, 0, r.second); + proc_lib (nullptr, proc_lib_name, 0, nullptr, r.second); } }; -- cgit v1.1