mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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>
This commit is contained in:
committed by
Thomas Huth
parent
3faebbcd64
commit
a1a9800e97
@ -104,7 +104,11 @@ if have_block
|
||||
util_ss.add(files('throttle.c'))
|
||||
util_ss.add(files('timed-average.c'))
|
||||
if config_host_data.get('CONFIG_INOTIFY1')
|
||||
util_ss.add(files('filemonitor-inotify.c'))
|
||||
freebsd_dep = []
|
||||
if host_os == 'freebsd'
|
||||
freebsd_dep = inotify
|
||||
endif
|
||||
util_ss.add(files('filemonitor-inotify.c'), freebsd_dep)
|
||||
else
|
||||
util_ss.add(files('filemonitor-stub.c'))
|
||||
endif
|
||||
|
Reference in New Issue
Block a user