aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/prefer_static.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/prefer_static.md')
-rw-r--r--docs/markdown/snippets/prefer_static.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/prefer_static.md b/docs/markdown/snippets/prefer_static.md
new file mode 100644
index 0000000..c63323b
--- /dev/null
+++ b/docs/markdown/snippets/prefer_static.md
@@ -0,0 +1,9 @@
+## New prefer_static built-in option
+
+Users can now set a boolean, `prefer_static`, that controls whether or not
+static linking should be tried before shared linking. This option acts as
+strictly a preference. If the preferred linking method is not successful,
+then Meson will fallback and try the other linking method. Specifically
+setting the `static` kwarg in the meson.build will take precedence over
+the value of `prefer_static` for that specific `dependency` or
+`find_library` call.