diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2021-07-14 11:15:36 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2021-07-14 15:52:17 +0100 |
commit | e8575f2532e74cea6d9c750f6b4404071aa47917 (patch) | |
tree | cafe9535e0e77ffa44cb0692aef4731459ca2b1c /meson.build | |
parent | 029aa68fdcc5a5bbf28f0044b9394dabde2b88e3 (diff) | |
download | qemu-e8575f2532e74cea6d9c750f6b4404071aa47917.zip qemu-e8575f2532e74cea6d9c750f6b4404071aa47917.tar.gz qemu-e8575f2532e74cea6d9c750f6b4404071aa47917.tar.bz2 |
meson.build: relax the libdl test to one for the function dlopen
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 <alex.bennee@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210714101536.16016-1-alex.bennee@linaro.org>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build index c6dd70c..e5de144 100644 --- a/meson.build +++ b/meson.build @@ -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 |