diff mbox series

[PULL,02/10] build: Don't specify -no-pie for --static user-mode programs

Message ID 20230301182353.21559-3-imp@bsdimp.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/10] bsd-user: Don't truncate the return value from freebsd_syscall | expand

Commit Message

Warner Losh March 1, 2023, 6:23 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/configure b/configure
index 2a8a9be8a18..24684f47b6b 100755
--- 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