qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: remove useless libdl test
@ 2021-11-10  9:24 Paolo Bonzini
  2021-11-10  9:48 ` Thomas Huth
  2021-11-10 10:26 ` Alex Bennée
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2021-11-10  9:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.bennee

dlopen is never used after it is sought via cc.find_library, because
plugins use gmodule instead; remove the test.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 accel/tcg/meson.build | 2 +-
 meson.build           | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build
index 137a1a44cc..7a0a79d731 100644
--- a/accel/tcg/meson.build
+++ b/accel/tcg/meson.build
@@ -10,7 +10,7 @@ tcg_ss.add(files(
 ))
 tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
 tcg_ss.add(when: 'CONFIG_SOFTMMU', if_false: files('user-exec-stub.c'))
-tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c'), libdl])
+tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c')])
 specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
 
 specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: files(
diff --git a/meson.build b/meson.build
index d714ebdb37..06ab63625e 100644
--- a/meson.build
+++ b/meson.build
@@ -566,13 +566,7 @@ endif
 spice_headers = spice.partial_dependency(compile_args: true, includes: true)
 
 rt = cc.find_library('rt', required: false)
-libdl = not_found
-if 'CONFIG_PLUGIN' in config_host
-  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
   libiscsi = dependency('libiscsi', version: '>=1.9.0',
-- 
2.33.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] meson: remove useless libdl test
  2021-11-10  9:24 [PATCH] meson: remove useless libdl test Paolo Bonzini
@ 2021-11-10  9:48 ` Thomas Huth
  2021-11-10 10:26 ` Alex Bennée
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2021-11-10  9:48 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: alex.bennee

On 10/11/2021 10.24, Paolo Bonzini wrote:
> dlopen is never used after it is sought via cc.find_library, because
> plugins use gmodule instead; remove the test.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   accel/tcg/meson.build | 2 +-
>   meson.build           | 8 +-------
>   2 files changed, 2 insertions(+), 8 deletions(-)

Right. I've just grep'ed for "dlopen" or the related dlfcn.h header in the 
sources and did not see any direct use.

Reviewed-by: Thomas Huth <thuth@redhat.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] meson: remove useless libdl test
  2021-11-10  9:24 [PATCH] meson: remove useless libdl test Paolo Bonzini
  2021-11-10  9:48 ` Thomas Huth
@ 2021-11-10 10:26 ` Alex Bennée
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2021-11-10 10:26 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel


Paolo Bonzini <pbonzini@redhat.com> writes:

> dlopen is never used after it is sought via cc.find_library, because
> plugins use gmodule instead; remove the test.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Queued to for-6.2/misc-fixes, thanks.

-- 
Alex Bennée


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-10 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-10  9:24 [PATCH] meson: remove useless libdl test Paolo Bonzini
2021-11-10  9:48 ` Thomas Huth
2021-11-10 10:26 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).