From de6293c05e128c7a4ed1ba66fbf043ca09d9e671 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 22 Jun 2021 04:20:10 +0200 Subject: [PATCH] meson: Passing `-fPIE` explicitly is discouraged as indicated by the logs during configuration: `WARNING: Use the 'pie' kwarg instead of passing '-fpie' manually to 'provider'` --- tests/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index adfe262..c0df8ac 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -14,7 +14,6 @@ test_env = [ ] test_cflags = [ - '-fPIE', '-DFOR_TESTING', '-Wno-error=deprecated-declarations', '-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir), @@ -48,6 +47,7 @@ foreach test : tests dummy_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, libcalls], dependencies: calls_deps, include_directories : [ @@ -63,6 +63,7 @@ test_sources = [ 'test-manager.c' ] t = executable('manager', test_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, libcalls], dependencies: calls_deps, include_directories : [ @@ -77,6 +78,7 @@ t = executable('plugins', test_sources, calls_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, libcalls], dependencies: calls_deps, include_directories : [ @@ -89,6 +91,7 @@ test_sources = [ 'test-sip.c' ] t = executable('sip', test_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, calls_sip, libcalls], dependencies: [calls_deps, sip_deps], include_directories : [ @@ -102,6 +105,7 @@ test_sources = [ 'test-account.c' ] t = executable('account', test_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, calls_sip, libcalls], dependencies: [calls_deps, sip_deps], include_directories : [ @@ -115,6 +119,7 @@ test_sources = [ 'test-util.c' ] t = executable('util', test_sources, c_args : test_cflags, link_args: test_link_args, + pie: true, link_with : [calls_vala, libcalls], dependencies: calls_deps, include_directories : [