Drop optimization flags when compiling on aarch64 (see RHBZ#1126199).

This commit is contained in:
Richard W.M. Jones 2014-08-03 14:17:35 +01:00
parent bcd9d80d1a
commit a6c45000fe
1 changed files with 5 additions and 2 deletions

View File

@ -152,7 +152,7 @@
Summary: QEMU is a FAST! processor emulator Summary: QEMU is a FAST! processor emulator
Name: qemu Name: qemu
Version: 2.1.0 Version: 2.1.0
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 2 Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD License: GPLv2+ and LGPLv2+ and BSD
Group: Development/Tools Group: Development/Tools
@ -765,8 +765,10 @@ sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
--localstatedir=%{_localstatedir} \ --localstatedir=%{_localstatedir} \
--libexecdir=%{_libexecdir} \ --libexecdir=%{_libexecdir} \
--disable-strip \ --disable-strip \
%ifnarch aarch64
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \ --extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
--extra-cflags="%{optflags} -fPIE -DPIE" \ --extra-cflags="%{optflags} -fPIE -DPIE" \
%endif
--disable-werror \ --disable-werror \
--target-list="$buildarch" \ --target-list="$buildarch" \
--audio-drv-list=pa,sdl,alsa,oss \ --audio-drv-list=pa,sdl,alsa,oss \
@ -1492,8 +1494,9 @@ getent passwd qemu >/dev/null || \
%endif %endif
%changelog %changelog
* Sun Aug 3 2014 Richard W.M. Jones <rjones@redhat.com> 2:2.1.0-1 * Sun Aug 3 2014 Richard W.M. Jones <rjones@redhat.com> 2:2.1.0-2
- Update to qemu 2.1.0 final released version. - Update to qemu 2.1.0 final released version.
- Drop optimization flags when compiling on aarch64 (see RHBZ#1126199).
* Fri Jul 25 2014 Cole Robinson <crobinso@redhat.com> 2:2.1.0-0.5.rc3 * Fri Jul 25 2014 Cole Robinson <crobinso@redhat.com> 2:2.1.0-0.5.rc3
- Update to qemu-2.1.0-rc3 - Update to qemu-2.1.0-rc3