From d33558b7335a469942e204f73de6faed81f8041f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Aug 2019 09:57:42 +0200 Subject: Add support for bin.lib.load_suffix This allow the creation of yet another symlink to the shared library that is meant to be used for dynamic loading. For example, we may want to embed the main program interface number into its plugins to make sure that we only load compatible versions. --- build2/cc/install-rule.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build2/cc/install-rule.cxx') diff --git a/build2/cc/install-rule.cxx b/build2/cc/install-rule.cxx index f8058d7..a3a8253 100644 --- a/build2/cc/install-rule.cxx +++ b/build2/cc/install-rule.cxx @@ -216,6 +216,7 @@ namespace build2 }; const path& lk (lp.link); + const path& ld (lp.load); const path& so (lp.soname); const path& in (lp.interm); @@ -223,6 +224,7 @@ namespace build2 if (!in.empty ()) {r = ln (*f, in) || r; f = ∈} if (!so.empty ()) {r = ln (*f, so) || r; f = &so;} + if (!ld.empty ()) {r = ln (*f, ld) || r; f = &ld;} if (!lk.empty ()) {r = ln (*f, lk) || r; } } @@ -247,10 +249,12 @@ namespace build2 }; const path& lk (lp.link); + const path& ld (lp.load); const path& so (lp.soname); const path& in (lp.interm); if (!lk.empty ()) r = rm (lk) || r; + if (!ld.empty ()) r = rm (ld) || r; if (!so.empty ()) r = rm (so) || r; if (!in.empty ()) r = rm (in) || r; } -- cgit v1.1