diff options
Diffstat (limited to 'build2/cc/pkgconfig.cxx')
-rw-r--r-- | build2/cc/pkgconfig.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index 55c8b35..d331f7e 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -1265,11 +1265,13 @@ namespace build2 bool priv (false); auto imp = [&priv] (const file&, bool la) {return priv && la;}; - auto lib = [&os, &save_library] (const file* l, + auto lib = [&os, &save_library] (const file* const* c, const string& p, lflags, bool) { + const file* l (c != nullptr ? *c : nullptr); + if (l != nullptr) { if (l->is_a<libs> () || l->is_a<liba> ()) // See through libux. |