summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-24 21:03:35 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-25 08:49:16 -0400
commit6e2afb1cab76ef31a31c7e4123b9d8ec34a3e824 (patch)
tree81650e2a2f2f2a90004d6d18eb6ff40029c8b7f8 /src
parentb884196cc1565eaf1b97141fbfa0667ee348e463 (diff)
meson: fix checking of linker args
Previous checks did nothing, because cc.has_argument only does compilation, without any linking. Unfortunately cc.links() cannot be used, because it does not accept any options. Providing the test file as a static source is easiest, even if not every elegant. https://github.com/mesonbuild/meson/issues/1676
Diffstat (limited to 'src')
-rw-r--r--src/systemd/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index 0f5a853e2e..43fd0130b9 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -47,7 +47,7 @@ foreach header : _systemd_headers
name = ''.join([header] + opt)
test('cc-' + name,
check_compilation_sh,
- args : cc.cmd_array() + ['-x', 'c'] + opt +
+ args : cc.cmd_array() + ['-x', 'c', '-c'] + opt +
['-Werror', '-include',
join_paths(meson.current_source_dir(), header)])
endforeach