From bbf670d03ee587b0794f77a39db801bad6459ca5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Nov 2024 11:38:44 +0200 Subject: Only install runtime part of static library prerequisites of share libraries (GH issue #448) --- libbuild2/bin/rule.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libbuild2/bin/rule.cxx') diff --git a/libbuild2/bin/rule.cxx b/libbuild2/bin/rule.cxx index c7147bf..1fea558 100644 --- a/libbuild2/bin/rule.cxx +++ b/libbuild2/bin/rule.cxx @@ -218,5 +218,18 @@ namespace build2 const target* m[] = {t.a, t.s}; return execute_members (a, t, m); } + + // install_lib_rule + // + pair install_lib_rule:: + filter (const scope* is, + action a, const target& t, const prerequisite& p, + match_extra& me) const + { + if (p.is_a ()) + return pair (nullptr, 0); + + return install::group_rule::filter (is, a, t, p, me); + } } } -- cgit v1.1