From c453400d597116954b3bb2a9e2c3d60251dc97a2 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 1 Oct 2018 20:48:34 -0400 Subject: Add 'b_pie' compiler option On Android executables must be position independent, many distributions enable it by default too for security reasons. --- docs/markdown/snippets/pie.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/pie.md (limited to 'docs/markdown/snippets') 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). -- cgit v1.1