summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRichard Henderson2010-05-21 19:04:46 +0200
committerAurelien Jarno2010-06-08 19:12:47 +0200
commitd44cff22047651aefe8ea68f173e1dcbb56b07a7 (patch)
tree8351a859c55642f76af1f3b3f1acac3bcc7697cb /configure
parentmicroblaze: Make MSR_UM and MSR_VM part of the tb flags (diff)
downloadqemu-d44cff22047651aefe8ea68f173e1dcbb56b07a7.tar.gz
qemu-d44cff22047651aefe8ea68f173e1dcbb56b07a7.tar.xz
qemu-d44cff22047651aefe8ea68f173e1dcbb56b07a7.zip
Fix --enable-user-pie compilation.
We forgot to propagate -fpie to the libdis-user directory. Signed-off-by: Richard Henderson <rth@twiddle.net> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
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"