Skip to contentSkip to conversation

Fix --enable-user-pie compilation.

PATCH In review Richard Henderson 1 participant 2 messages May 3, 2010 – May 17, 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 87942f4..dc11b65 100755
@@ -2344,6 +2344,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? This options really doesn't work atm...

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 87942f4..dc11b65 100755
@@ -2344,6 +2344,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"