aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/meson.build
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 /src/bin/elementary/meson.build
parentefl_loop: remove FIXME that is done (diff)
downloadefl-edfa0f44fda70a0ee926a3efe3c53220d997c8a1.tar.gz
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>
Diffstat (limited to '')
-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 = [
]
if sys_windows == false
- link_args = '-rdynamic'
+ link_args = ['-rdynamic', '-fPIC', '-pie']
+ package_c_args = package_c_args + ['-fPIC']
else
link_args = []
endif