From 78724c86b63d08b08ebe8be2a98856a7c9dc6d75 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 24 Aug 2016 16:50:03 +0200 Subject: Pick *.libs variable depending on library type during static linking --- build2/cc/init.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/cc/init.cxx') diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx index 0c82169..0f1fda7 100644 --- a/build2/cc/init.cxx +++ b/build2/cc/init.cxx @@ -60,6 +60,13 @@ namespace build2 v.insert ("config.cc.target"); v.insert ("config.cc.pattern"); + // Target type, for example, "C library" or "C++ library". Should be set + // on the target by the matching rule to the name of the module (e.g., + // "c", "cxx"). Currenly only set for libraries and is used to decide + // which *.libs to use during static linking. + // + v.insert ("cc.type"); + return true; } -- cgit v1.1