block: always link with zlib
Subsystems (2)
PATCH 1/1 block: always link with zlib
The qcow2 driver needs the zlib dependency. While emulators provided it through the migration code, this is not true of the tools. Move the dependency from the qcow1 rule directly into block_ss so that it is included unconditionally.
Fixes build with --disable-qcow1.
--- block/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
block/meson.build +2 -2
@@ -40,9 +40,9 @@ block_ss.add(files( 'vmdk.c', 'vpc.c', 'write-threshold.c', -), zstd) +), zstd, zlib) -block_ss.add(when: [zlib, 'CONFIG_QCOW1'], if_true: files('qcow.c')) +block_ss.add(when: 'CONFIG_QCOW1', if_true: files('qcow.c')) block_ss.add(when: 'CONFIG_VDI', if_true: files('vdi.c')) block_ss.add(when: 'CONFIG_CLOOP', if_true: files('cloop.c')) block_ss.add(when: 'CONFIG_BOCHS', if_true: files('bochs.c'))
Signature · 1 line
2.26.2
Quoted 20 lines · Paolo Bonzini
The qcow2 driver needs the zlib dependency. While emulators provided it through the migration code, this is not true of the tools. Move the dependency from the qcow1 rule directly into
block_ssso that it is included unconditionally.Fixes build with --disable-qcow1.
Reported-by Thomas Huth <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- block/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)block/meson.build +0
-0@@ -40,9 +40,9 @@ block_ss.add(files( 'vmdk.c',
block/meson.build block_ss.add(files( · line 48
Quoted 10 lines
block/meson.build +2
-2'vpc.c', 'write-threshold.c', -), zstd) +), zstd, zlib) -block_ss.add(when: [zlib, 'CONFIG_QCOW1'], if_true: files('qcow.c')) +block_ss.add(when: 'CONFIG_QCOW1', if_true: files('qcow.c')) block_ss.add(when: 'CONFIG_VDI', if_true: files('vdi.c')) block_ss.add(when: 'CONFIG_CLOOP', if_true: files('cloop.c')) block_ss.add(when: 'CONFIG_BOCHS', if_true: files('bochs.c'))
Quoted 11 lines · Paolo Bonzini
The qcow2 driver needs the zlib dependency. While emulators provided it through the migration code, this is not true of the tools. Move the dependency from the qcow1 rule directly into
block_ssso that it is included unconditionally.Fixes build with --disable-qcow1.
Reported-by Thomas Huth <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>
---
Quoted 24 lines
block/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)block/meson.build +2
-3@@ -40,9 +40,9 @@ block_ss.add(files( 'vmdk.c', 'vpc.c', 'write-threshold.c', -), zstd) +), zstd, zlib) -block_ss.add(when: [zlib, 'CONFIG_QCOW1'], if_true: files('qcow.c')) +block_ss.add(when: 'CONFIG_QCOW1', if_true: files('qcow.c')) block_ss.add(when: 'CONFIG_VDI', if_true: files('vdi.c')) block_ss.add(when: 'CONFIG_CLOOP', if_true: files('cloop.c')) block_ss.add(when: 'CONFIG_BOCHS', if_true: files('bochs.c')) --2.26.2