From d44cff22047651aefe8ea68f173e1dcbb56b07a7 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 21 May 2010 10:04:46 -0700 Subject: [PATCH] Fix --enable-user-pie compilation. We forgot to propagate -fpie to the libdis-user directory. Signed-off-by: Richard Henderson Acked-by: Paolo Bonzini Signed-off-by: Aurelien Jarno --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index 653c8d2a35..72d89247e1 100755 --- a/configure +++ b/configure @@ -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"