summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-01-10 17:03:35 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-10 19:44:01 +0100
commitedfa0f44fda70a0ee926a3efe3c53220d997c8a1 (patch)
treedd80dd91084188b28050c275b62add5492a55705
parentabf3fcf2618163b71291152602e17be9535b2cf6 (diff)
meson: elm: add pie and fPIC cflags and ldflags to elm binaries
My use case here is having elementary_test being loaded by exactness. That has been working fine with our autotools based build system but no longer with meson. Bringing fPIC and pie back as options allows exactness to dlopen the binary and work again. Differential Revision: https://phab.enlightenment.org/D7587 Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
-rw-r--r--src/bin/elementary/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build
index f8ca71e9c8..008eab708f 100644
--- a/src/bin/elementary/meson.build
+++ b/src/bin/elementary/meson.build
@@ -157,7 +157,8 @@ elementary_test_src = [
157] 157]
158 158
159if sys_windows == false 159if sys_windows == false
160 link_args = '-rdynamic' 160 link_args = ['-rdynamic', '-fPIC', '-pie']
161 package_c_args = package_c_args + ['-fPIC']
161else 162else
162 link_args = [] 163 link_args = []
163endif 164endif