]> git.proxmox.com Git - mirror_qemu.git/commitdiff
build: Don't specify -no-pie for --static user-mode programs
authorWarner Losh <imp@bsdimp.com>
Fri, 10 Feb 2023 18:12:46 +0000 (11:12 -0700)
committerWarner Losh <imp@bsdimp.com>
Wed, 1 Mar 2023 18:09:18 +0000 (11:09 -0700)
When building with clang, -no-pie gives a warning on every single build,
so remove it.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
configure

index 2a8a9be8a18076d20722390fa1589643fc483d8f..24684f47b6b042d099d4ac8f4c98b2c97b3a4524 100755 (executable)
--- a/configure
+++ b/configure
@@ -1347,7 +1347,7 @@ if test "$static" = "yes"; then
     error_exit "-static-pie not available due to missing toolchain support"
   else
     pie="no"
-    QEMU_CFLAGS="-fno-pie -no-pie $QEMU_CFLAGS"
+    QEMU_CFLAGS="-fno-pie $QEMU_CFLAGS"
   fi
 elif test "$pie" = "no"; then
   if compile_prog "-Werror -fno-pie" "-no-pie"; then