aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-05-21 10:04:46 -0700
committerAurelien Jarno <aurelien@aurel32.net>2010-06-08 19:12:47 +0200
commitd44cff22047651aefe8ea68f173e1dcbb56b07a7 (patch)
tree8351a859c55642f76af1f3b3f1acac3bcc7697cb /configure
parentfd1dc858370d9a9ac7ea2512812c3a152ee6484b (diff)
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"