aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-10-01 20:48:34 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-20 00:47:27 +0300
commitc453400d597116954b3bb2a9e2c3d60251dc97a2 (patch)
tree9bfe4e1ad5cf6f0fe05e6ebd4ee34c746ca40eac /docs/markdown/snippets
parent3ad99d27695c3018cf2449a2478b346a5b069c95 (diff)
downloadmeson-c453400d597116954b3bb2a9e2c3d60251dc97a2.zip
meson-c453400d597116954b3bb2a9e2c3d60251dc97a2.tar.gz
meson-c453400d597116954b3bb2a9e2c3d60251dc97a2.tar.bz2
Add 'b_pie' compiler option
On Android executables must be position independent, many distributions enable it by default too for security reasons.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/pie.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/snippets/pie.md b/docs/markdown/snippets/pie.md
new file mode 100644
index 0000000..a9be174
--- /dev/null
+++ b/docs/markdown/snippets/pie.md
@@ -0,0 +1,6 @@
+## Position-independent executables
+
+When `b_pie` option, or `executable()`'s `pie` keyword argument is set to
+`true`, position-independent executables are built. All their objects are built
+with `-fPIE` and the executable is linked with `-pie`. Any static library they
+link must be built with `pic` set to `true` (see `b_staticpic` option).