Skip to contentSkip to conversation

Fix --enable-user-pie compilation.

PATCH In review Richard Henderson 2 participants 3 messages May 21, 2010 – Jun 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix --enable-user-pie compilation.

We forgot to propagate -fpie to the libdis-user directory.

---
 configure |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
configure +3 -0
index 3cd2c5f..ba3aaac 100755
@@ -2355,6 +2355,9 @@ for d in libdis libdis-user; do
     ln -s $source_path/Makefile.dis $d/Makefile
     echo > $d/config.mak
 done
+if test "$static" = "no" -a "$user_pie" = "yes" ; then
+  echo "QEMU_CFLAGS+=-fpie" > libdis-user/config.mak
+fi
 
 for target in $target_list; do
 target_dir="$target"
Signature · 1 line
1.7.0.1
#1 lore raw

Ping^4

r~

Quoted 21 lines · Richard Henderson

We forgot to propagate -fpie to the libdis-user directory.

---
 configure |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
configure +3 -0
index 3cd2c5f..ba3aaac 100755
@@ -2355,6 +2355,9 @@ for d in libdis libdis-user; do
     ln -s $source_path/Makefile.dis $d/Makefile
     echo > $d/config.mak
 done
+if test "$static" = "no" -a "$user_pie" = "yes" ; then
+  echo "QEMU_CFLAGS+=-fpie" > libdis-user/config.mak
+fi
 
 for target in $target_list; do
 target_dir="$target"
Acked-by
#2 lore raw
Quoted 25 lines · Richard Henderson

Ping^4

r~

Quoted 19 lines · Richard Henderson

We forgot to propagate -fpie to the libdis-user directory.

---
  configure |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
configure +3 -0
index 3cd2c5f..ba3aaac 100755
@@ -2355,6 +2355,9 @@ for d in libdis libdis-user; do
      ln -s $source_path/Makefile.dis $d/Makefile
      echo>  $d/config.mak
  done
+if test "$static" = "no" -a "$user_pie" = "yes" ; then
+  echo "QEMU_CFLAGS+=-fpie">  libdis-user/config.mak
+fi
 
Quoted 2 lines

configure for d in libdis libdis-user; do · line 2363

Quoted 2 lines
configure +0 -0
  for target in $target_list; do
  target_dir="$target"

Paolo