summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-12-13 11:12:00 -0500
committerDylan Baker <dylan@pnwbakers.com>2024-09-06 10:56:44 -0700
commit0fc363021e5c2e79a68fb33e60b72b8ffd353875 (patch)
tree84f56f6e6eb41c1d74326ae549556c8ba7a0b934 /docs/markdown/snippets
parent2d6915a5983a64b58ecafd1b1dc92e9c48579ff2 (diff)
downloadmeson-0fc363021e5c2e79a68fb33e60b72b8ffd353875.tar.gz
auto select static or shared when linking both_libraries together
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/default_both_libraries.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/default_both_libraries.md b/docs/markdown/snippets/default_both_libraries.md
index 279c43d22..dc9cb6bca 100644
--- a/docs/markdown/snippets/default_both_libraries.md
+++ b/docs/markdown/snippets/default_both_libraries.md
@@ -2,3 +2,10 @@
`both_libraries` targets used to be considered as a shared library by default.
There is now the `default_both_libraries` option to change this default.
+
+When `default_both_libraries` is 'auto', [[both_libraries]] with dependencies
+that are [[@both_libs]] themselves will link with the same kind of library.
+For example, if `libA` is a [[@both_libs]] and `libB` is a [[@both_libs]]
+linked with `libA` (or with an internal dependency on `libA`),
+the static lib of `libB` will link with the static lib of `libA`, and the
+shared lib of `libA` will link with the shared lib of `libB`.