]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: fix checking of linker args
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Apr 2017 01:03:35 +0000 (21:03 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Apr 2017 12:49:16 +0000 (08:49 -0400)
commit6e2afb1cab76ef31a31c7e4123b9d8ec34a3e824
tree81650e2a2f2f2a90004d6d18eb6ff40029c8b7f8
parentb884196cc1565eaf1b97141fbfa0667ee348e463
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
meson.build
src/systemd/meson.build
tools/meson-check-compilation.sh
tools/meson-link-test.c [new file with mode: 0644]