From 77b7d81b2bc24507d1f3aef5684da89eb7c5fcc7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 3 Jul 2015 18:45:22 +0100 Subject: [PATCH] Enable -fPIC and -fPIE on every architecture (rhbz 1232499). --- qemu.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu.spec b/qemu.spec index d5d406d..068227d 100644 --- a/qemu.spec +++ b/qemu.spec @@ -40,7 +40,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 2.3.0 -Release: 14%{?dist} +Release: 15%{?dist} Epoch: 2 License: GPLv2+ and LGPLv2+ and BSD Group: Development/Tools @@ -616,10 +616,10 @@ unicore32-linux-user aarch64-softmmu" --disable-strip \ %ifnarch aarch64 --extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \ - --extra-cflags="%{optflags}" \ + --extra-cflags="%{optflags} -fPIC -fPIE" \ %endif %ifarch aarch64 - --extra-cflags="%{optflags} -fPIC" \ + --extra-cflags="%{optflags} -fPIC -fPIE" \ %endif --enable-pie \ --disable-werror \ @@ -1204,6 +1204,9 @@ getent passwd qemu >/dev/null || \ %changelog +* Fri Jul 3 2015 Richard W.M. Jones - 2:2.3.0-15 +- Enable -fPIC and -fPIE on every architecture (rhbz 1232499). + * Fri Jul 3 2015 Daniel P. Berrange - 2:2.3.0-14 - Use explicit --(enable,disable)-spice args (rhbz #1239102)