Commit cc2d6e9b authored by Oliver Galvin's avatar Oliver Galvin Committed by Guido Gunther
Browse files

meson: fix configure-time warning - Use the 'pie' kwarg instead of passing...

meson: fix configure-time warning - Use the 'pie' kwarg instead of passing '-fpie' manually. Also bump Meson to 0.49.0, when the pie kwarg was added.
parent c4b9f30a
project('libhandy', 'c',
version: '0.0.11',
license: 'LGPL-2.1+',
meson_version: '>= 0.47.0',
meson_version: '>= 0.49.0',
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
)
......
......@@ -10,7 +10,6 @@ test_env = [
]
test_cflags = [
'-fPIE',
'-DHDY_LOG_DOMAIN="Handy"',
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()),
]
......@@ -49,6 +48,7 @@ foreach test_name : test_names
c_args: test_cflags,
link_args: test_link_args,
dependencies: libhandy_deps + [libhandy_dep],
pie: true,
)
test(test_name, t, env: test_env)
endforeach
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment