aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-05-07 12:48:22 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2024-05-27 07:32:40 +0300
commit19a931f207587d44d0beabd94c9f282c67baea4b (patch)
treed231e3de7ac30524d2b4f7f8d7a067f1171c23e3 /configure
parent2b956256439ecf02327f088a050c9c9fcca00b55 (diff)
configure: quote -D options that are passed through to meson
Ensure that they go through unmodified, instead of removing one layer of quoting. -D is a pretty specialized option and most options that can have spaces do not need it (for example, c_args is covered by --extra-cflags). Therefore it's unlikely that this causes actual trouble. However, a somewhat realistic failure case would be with -Dpkg_config_path and a pkg-config directory that contains spaces. Cc: qemu-stable@nongnu.org Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit 23b1f53c2c8990ed745acede171e49645af3d6d0) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 163729c3ec..66ca736621 100755
--- a/configure
+++ b/configure
@@ -761,7 +761,7 @@ for opt do
--*) meson_option_parse "$opt" "$optarg"
;;
# Pass through -Dxxxx options to meson
- -D*) meson_options="$meson_options $opt"
+ -D*) meson_option_add "$opt"
;;
esac
done