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'`
This commit is contained in:
@@ -14,7 +14,6 @@ test_env = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
test_cflags = [
|
test_cflags = [
|
||||||
'-fPIE',
|
|
||||||
'-DFOR_TESTING',
|
'-DFOR_TESTING',
|
||||||
'-Wno-error=deprecated-declarations',
|
'-Wno-error=deprecated-declarations',
|
||||||
'-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir),
|
'-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir),
|
||||||
@@ -48,6 +47,7 @@ foreach test : tests
|
|||||||
dummy_sources,
|
dummy_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, libcalls],
|
link_with : [calls_vala, libcalls],
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
include_directories : [
|
include_directories : [
|
||||||
@@ -63,6 +63,7 @@ test_sources = [ 'test-manager.c' ]
|
|||||||
t = executable('manager', test_sources,
|
t = executable('manager', test_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, libcalls],
|
link_with : [calls_vala, libcalls],
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
include_directories : [
|
include_directories : [
|
||||||
@@ -77,6 +78,7 @@ t = executable('plugins', test_sources,
|
|||||||
calls_sources,
|
calls_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, libcalls],
|
link_with : [calls_vala, libcalls],
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
include_directories : [
|
include_directories : [
|
||||||
@@ -89,6 +91,7 @@ test_sources = [ 'test-sip.c' ]
|
|||||||
t = executable('sip', test_sources,
|
t = executable('sip', test_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, calls_sip, libcalls],
|
link_with : [calls_vala, calls_sip, libcalls],
|
||||||
dependencies: [calls_deps, sip_deps],
|
dependencies: [calls_deps, sip_deps],
|
||||||
include_directories : [
|
include_directories : [
|
||||||
@@ -102,6 +105,7 @@ test_sources = [ 'test-account.c' ]
|
|||||||
t = executable('account', test_sources,
|
t = executable('account', test_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, calls_sip, libcalls],
|
link_with : [calls_vala, calls_sip, libcalls],
|
||||||
dependencies: [calls_deps, sip_deps],
|
dependencies: [calls_deps, sip_deps],
|
||||||
include_directories : [
|
include_directories : [
|
||||||
@@ -115,6 +119,7 @@ test_sources = [ 'test-util.c' ]
|
|||||||
t = executable('util', test_sources,
|
t = executable('util', test_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: test_link_args,
|
link_args: test_link_args,
|
||||||
|
pie: true,
|
||||||
link_with : [calls_vala, libcalls],
|
link_with : [calls_vala, libcalls],
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
include_directories : [
|
include_directories : [
|
||||||
|
Reference in New Issue
Block a user