Skip to content

Commit

Permalink
meson.build: relax the libdl test to one for the function dlopen
Browse files Browse the repository at this point in the history
For the *BSD family dlopen is already part of libc so it's not a hard
dependency to have a libdl.so library.

Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
stsquad committed Jul 14, 2021
1 parent 029aa68 commit e8575f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,10 @@ endif
rt = cc.find_library('rt', required: false)
libdl = not_found
if 'CONFIG_PLUGIN' in config_host
libdl = cc.find_library('dl', required: true)
libdl = cc.find_library('dl', required: false)
if not cc.has_function('dlopen', dependencies: libdl)
error('dlopen not found')
endif
endif
libiscsi = not_found
if not get_option('libiscsi').auto() or have_block
Expand Down

0 comments on commit e8575f2

Please sign in to comment.