diff options
author | Alex Bennée | 2022-09-14 17:59:38 +0200 |
---|---|---|
committer | Alex Bennée | 2022-09-20 18:22:04 +0200 |
commit | abafb64b6dcbdb0ca0943cd04373bd84353ce7ec (patch) | |
tree | d7d5be94570946fed20a2245cd2a6076dbba1ec2 /configure | |
parent | tests/vm: Remove obsolete Fedora VM test (diff) | |
download | qemu-abafb64b6dcbdb0ca0943cd04373bd84353ce7ec.tar.gz qemu-abafb64b6dcbdb0ca0943cd04373bd84353ce7ec.tar.xz qemu-abafb64b6dcbdb0ca0943cd04373bd84353ce7ec.zip |
configure: explicitly set cflags for --disable-pie
This is working around current limitation of Meson's handling of
--disable-pie.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220914155950.804707-19-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1382,6 +1382,9 @@ elif test "$pie" = "no"; then if compile_prog "-Werror -fno-pie" "-no-pie"; then CONFIGURE_CFLAGS="-fno-pie $CONFIGURE_CFLAGS" CONFIGURE_LDFLAGS="-no-pie $CONFIGURE_LDFLAGS" + # Meson currently only handles pie as a boolean for now so if we have + # explicitly disabled PIE we need to extend our cflags because it wont. + QEMU_CFLAGS="-fno-pie -no-pie $QEMU_CFLAGS" fi elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then CONFIGURE_CFLAGS="-fPIE -DPIE $CONFIGURE_CFLAGS" |