Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Set soname on Linux The merge of MR dropped `else` which made the soname setting ineffective on Linux. * Limit exported symbols This greatly reduces the number of exported symbols by limiting the namespace of exported symbols to {varnam,varray,vm}_ thus avoiding the export of all the `_cg` symbols from go. Before: $ readelf -s /tmp/a/usr/lib/libgovarnam.so.1.9.0 | grep -v " UND " | wc -l 248 After: $ readelf -s /usr/lib/libgovarnam.so.1.9.0 | grep -v " UND " | wc -l 52 With this we can make sure applications don't link against accidentally exported symbols and break on library upgrades without us being able to notice. It also allows us to notice when symbols go missing and we hence need to bump the ABI version.