Skip to content

Commit 95e2289

Browse files
huthbonzini
authored andcommitted
meson.build: Do not look for VNC-related libraries if have_system is not set
When running "./configure --static --disable-system" there is currently a warning if the static version of libpng is missing: WARNING: Static library 'png16' not found for dependency 'libpng', may not be statically linked Since it does not make sense to look for the VNC-related libraries at all when we're building without system emulator binaries, let's add a check for have_system here to silence this warning. Signed-off-by: Thomas Huth <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent c2c7f33 commit 95e2289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ vnc = not_found
931931
png = not_found
932932
jpeg = not_found
933933
sasl = not_found
934-
if not get_option('vnc').disabled()
934+
if have_system and not get_option('vnc').disabled()
935935
vnc = declare_dependency() # dummy dependency
936936
png = dependency('libpng', required: get_option('vnc_png'),
937937
method: 'pkg-config', kwargs: static_kwargs)

0 commit comments

Comments
 (0)