diff mbox

Fix --enable-user-pie compilation.

Message ID 1272927267-17515-1-git-send-email-rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson May 3, 2010, 10:54 p.m. UTC
We forgot to propagate -fpie to the libdis-user directory.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 configure |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

Richard Henderson May 17, 2010, 6:27 p.m. UTC | #1
Ping?  This options really doesn't work atm...

r~

On 05/03/2010 03:54 PM, Richard Henderson wrote:
> We forgot to propagate -fpie to the libdis-user directory.
> 
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  configure |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/configure b/configure
> index 87942f4..dc11b65 100755
> --- a/configure
> +++ b/configure
> @@ -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"
diff mbox

Patch

diff --git a/configure b/configure
index 87942f4..dc11b65 100755
--- a/configure
+++ b/configure
@@ -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"