meson: Link with libinotify on FreeBSD
commita1a9800e9721f7a4b0762b97ff8961473870bc54
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 6 Feb 2024 00:22:03 +0000 (6 01:22 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 6 Feb 2024 09:27:50 +0000 (6 10:27 +0100)
tree1eff063cb5524738b588c35223e116cbeb7e67e2
parent3faebbcd64a657a5fd1f03cbad4bd171331f61b6
meson: Link with libinotify on FreeBSD

make vm-build-freebsd fails with:

    ld: error: undefined symbol: inotify_init1
    >>> referenced by filemonitor-inotify.c:183 (../src/util/filemonitor-inotify.c:183)
    >>>               util_filemonitor-inotify.c.o:(qemu_file_monitor_new) in archive libqemuutil.a

On FreeBSD the inotify functions are defined in libinotify.so. Add it
to the dependencies.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240206002344.12372-5-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
meson.build
util/meson.build