[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/6] target/hexagon: don't look for static glib
From: |
Paolo Bonzini |
Subject: |
[PULL 1/6] target/hexagon: don't look for static glib |
Date: |
Tue, 13 Aug 2024 19:05:50 +0200 |
From: Alyssa Ross <hi@alyssa.is>
When cross compiling QEMU configured with --static, I've been getting
configure errors like the following:
Build-time dependency glib-2.0 found: NO
../target/hexagon/meson.build:303:15: ERROR: Dependency lookup for glib-2.0
with method 'pkgconfig' failed: Could not generate libs for glib-2.0:
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
This happens because --static sets the prefer_static Meson option, but
my build machine doesn't have a static libpcre2. I don't think it
makes sense to insist that native dependencies are static, just
because I want the non-native QEMU binaries to be static.
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Link: 20240805104921.4035256-1-hi@alyssa.is">https://lore.kernel.org/r/20240805104921.4035256-1-hi@alyssa.is
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/hexagon/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build
index b0b253aa6bf..9ea1f4fc594 100644
--- a/target/hexagon/meson.build
+++ b/target/hexagon/meson.build
@@ -300,7 +300,7 @@ if idef_parser_enabled and 'hexagon-linux-user' in
target_dirs
arguments: ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@']
)
- glib_dep = dependency('glib-2.0', native: true)
+ glib_dep = dependency('glib-2.0', native: true, static: false)
idef_parser = executable(
'idef-parser',
--
2.46.0
- [PULL for-9.1 0/6] Miscellaneous fixes for QEMU 9.1-rc, Paolo Bonzini, 2024/08/13
- [PULL 1/6] target/hexagon: don't look for static glib,
Paolo Bonzini <=
- [PULL 2/6] target/i386: Do not apply REX to MMX operands, Paolo Bonzini, 2024/08/13
- [PULL 3/6] target/i386: Use unit not type in decode_modrm, Paolo Bonzini, 2024/08/13
- [PULL 5/6] module: Prevent crash by resetting local_err in module_load_qom_all(), Paolo Bonzini, 2024/08/13
- [PULL 6/6] po: update Italian translation, Paolo Bonzini, 2024/08/13
- [PULL 4/6] target/i386: Assert MMX and XMM registers in range, Paolo Bonzini, 2024/08/13
- Re: [PULL for-9.1 0/6] Miscellaneous fixes for QEMU 9.1-rc, Richard Henderson, 2024/08/13