diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-15 09:57:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-15 09:57:42 +0200 |
commit | d33558b7335a469942e204f73de6faed81f8041f (patch) | |
tree | 9e7bbddc59d5528b2c818a06c6700a932bc19856 /build2/bin | |
parent | 05c5e65dc69bdda66b9b73a10a107b901abf3bc3 (diff) |
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.
Diffstat (limited to 'build2/bin')
-rw-r--r-- | build2/bin/init.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build2/bin/init.cxx b/build2/bin/init.cxx index e9063fc..b46d643 100644 --- a/build2/bin/init.cxx +++ b/build2/bin/init.cxx @@ -118,10 +118,13 @@ namespace build2 // vp.insert<bool> ("bin.whole", false, variable_visibility::target); - vp.insert<string> ("bin.lib.prefix"); - vp.insert<string> ("bin.lib.suffix"); vp.insert<string> ("bin.exe.prefix"); vp.insert<string> ("bin.exe.suffix"); + vp.insert<string> ("bin.lib.prefix"); + vp.insert<string> ("bin.lib.suffix"); + + vp.insert<string> ("bin.lib.load_suffix", + variable_visibility::project); vp.insert<map<string, string>> ("bin.lib.version", variable_visibility::project); |