aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Quenneville <guillaume.quenneville@outlook.com>2022-01-30 23:34:34 -0500
committerEli Schwartz <eschwartz93@gmail.com>2022-02-01 16:34:00 -0500
commit6c1bb02f138a8c956a217c278dc8d82bfbc6d849 (patch)
treef3ded755d0b191c08f1e622b871a2ce4579513e3
parentb564e342219b9a453ae2c5857b5aa2bcc54511af (diff)
downloadmeson-6c1bb02f138a8c956a217c278dc8d82bfbc6d849.zip
meson-6c1bb02f138a8c956a217c278dc8d82bfbc6d849.tar.gz
meson-6c1bb02f138a8c956a217c278dc8d82bfbc6d849.tar.bz2
Updated precompiled library documentation
Fix link, change wording
-rw-r--r--docs/markdown/Shipping-prebuilt-binaries-as-wraps.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md b/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md
index 73cf48b..ebbe34e 100644
--- a/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md
+++ b/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md
@@ -34,3 +34,11 @@ Note that often libraries compiled with different compilers (or even
compiler flags) might not be compatible. If you do this, then you are
responsible for verifying that your libraries are compatible, Meson
will not check things for you.
+
+## Note for Linux libraries
+
+A precompiled linux shared library (.so) requires a soname field to be properly installed. If the soname field is missing, binaries referencing the library will require a hard link to the location of the library at install time (`/path/to/your/project/subprojects/precompiledlibrary/lib.so` instead of `$INSTALL_PREFIX/lib/lib.so`) after installation.
+
+You should change the compilation options for the precompiled library to avoid this issue. If recompiling is not an option, you can use the [patchelf](https://github.com/NixOS/patchelf) tool with the command `patchelf --set-soname libfoo.so libfoo.so` to edit the precompiled library after the fact.
+
+Meson generally guarantees any library it compiles has a soname. One notable exception is libraries built with the [[shared_module]] function.