Patchwork Fix --enable-user-pie compilation.

login
register
mail settings
Submitter Richard Henderson
Date May 3, 2010, 10:54 p.m.
Message ID <1272927267-17515-1-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/51536/
State New
Headers show

Comments

Richard Henderson - May 3, 2010, 10:54 p.m.
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(-)
Richard Henderson - May 17, 2010, 6:27 p.m.
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"

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"