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/init.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libbuild2/bin/init.cxx') diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx index 610082e..f01adfb 100644 --- a/libbuild2/bin/init.cxx +++ b/libbuild2/bin/init.cxx @@ -12,7 +12,6 @@ #include -#include #include #include @@ -31,6 +30,7 @@ namespace build2 static const obj_rule obj_; static const libul_rule libul_; static const lib_rule lib_; + static const install_lib_rule install_lib_; static const def_rule def_; // Default config.bin.*.lib values. @@ -631,10 +631,8 @@ namespace build2 // if (install_loaded) { - auto& gr (install::group_rule::instance); - - r.insert (perform_install_id, "bin.lib", gr); - r.insert (perform_uninstall_id, "bin.lib", gr); + r.insert (perform_install_id, "bin.lib", install_lib_); + r.insert (perform_uninstall_id, "bin.lib", install_lib_); } if (const test::module* m = rs.find_module ("test")) -- cgit v1.1