Skip to content

Commit

Permalink
package/qemu: fix static build
Browse files Browse the repository at this point in the history
Fix the following static build failure raised since bump to version 6.1
in commit 33c69c0 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>
  • Loading branch information
ffontaine authored and jacmet committed Nov 30, 2021
1 parent 2c916b4 commit 3376a20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/qemu/qemu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3376a20

Please sign in to comment.