All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/qemu: fix static build
@ 2021-11-30 16:37 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2021-11-30 16:37 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=3376a20b2d1cd64f0d6d103bd635302749af2d62
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following static build failure raised since bump to version 6.1
in commit 33c69c02fb4c1176584d1e2dd336b74ed39f5d65 and
https://gitlab.com/qemu-project/qemu/-/commit/ba4dd2aabc35bc5385739e13f14e3a10a223ede0
(which enabled plugins by default):

Library dl found: YES
Checking for function "dlopen" with dependency -ldl: NO

../meson.build:460:4: ERROR: Problem encountered: dlopen not found

Fixes:
 - http://autobuild.buildroot.org/results/df447bd963e62e06b28d7230da744616ae55b194

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/qemu/qemu.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 8ef969c117..919aef6599 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -167,6 +167,10 @@ else
 QEMU_OPTS += --disable-usb-redir
 endif
 
+ifeq ($(BR2_STATIC_LIBS),y)
+QEMU_OPTS += --static
+endif
+
 # Override CPP, as it expects to be able to call it like it'd
 # call the compiler.
 define QEMU_CONFIGURE_CMDS
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-30 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 16:37 [Buildroot] [git commit] package/qemu: fix static build Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.