tests: Don’t check for libdl on FreeBSD or NetBSD either

As with commit c14ac90ed2347ef050ccc83ef6b7b183cec6d0e4, it isn’t needed
and doesn’t exist.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #1739
This commit is contained in:
Philip Withnall 2019-05-02 00:37:05 +01:00
parent 375fa65b24
commit c6342b975d

View File

@ -140,13 +140,17 @@ if host_machine.system() != 'windows'
}
if have_rtld_next
# FIXME: This list will probably grow; see
# https://gitlab.gnome.org/GNOME/glib/issues/1739
no_libdl_systems = ['freebsd', 'netbsd', 'openbsd']
gio_tests += {
'gsocketclient-slow' : {
'depends' : [
shared_library('slow-connect-preload',
'slow-connect-preload.c',
name_prefix : '',
dependencies: cc.find_library('dl', required: host_machine.system() != 'openbsd'),
dependencies: cc.find_library('dl', required: not no_libdl_systems.contains(host_machine.system())),
install_dir : installed_tests_execdir,
install: installed_tests_enabled,
)