qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 007/132] meson: enable pie


From: Paolo Bonzini
Subject: [PATCH 007/132] meson: enable pie
Date: Thu, 12 Dec 2019 13:50:51 +0100

From: Marc-André Lureau <address@hidden>

Signed-off-by: Marc-André Lureau <address@hidden>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 0eb3d70..80055f1 100755
--- a/configure
+++ b/configure
@@ -2075,7 +2075,6 @@ int main(void) { return tls_var; }
 EOF
   if compile_prog "-fPIE -DPIE" "-pie"; then
     QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS"
-    LDFLAGS="-pie $LDFLAGS"
     pie="yes"
     if compile_prog "" "-Wl,-z,relro -Wl,-z,now" ; then
       LDFLAGS="-Wl,-z,relro -Wl,-z,now $LDFLAGS"
@@ -7942,6 +7941,7 @@ NINJA=$PWD/ninjatool $python $meson setup \
        --localstatedir "$local_statedir" \
        $(test "$strip_opt" = yes && echo --strip) \
        --buildtype $(if test "$debug" = yes; then echo debug; else echo 
debugoptimized; fi) \
+        -Db_pie=$(if test "$pie" = yes; then echo true; else echo false; fi) \
         $cross_arg \
        "$PWD" "$source_path"
 
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]