meson: switch function tests from compilation to linking
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Jul 2021 14:35:26 +0000 (16:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jul 2021 16:21:34 +0000 (18:21 +0200)
commit904ad5ec1583145ef411acb2dec63beeb12ea721
tree46b96c9e45b5c8d32d8df0b4a0deb46e37654ac4
parent838e37007cae48d32102e2f2addb2473138a98df
meson: switch function tests from compilation to linking

Some tests for glibc functions cause compilation to emit warnings but
still succeed even if the function is not there.  Therefore, change
from cc.compiles to cc.links.

Reported-by: Richard Zak <richard.j.zak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build