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>
This commit is contained in:
Stefan Schmidt 2019-01-10 17:03:35 +01:00 committed by Marcel Hollerbach
parent abf3fcf261
commit edfa0f44fd
1 changed files with 2 additions and 1 deletions

View File

@ -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