add correct assembler option for ppc64

This commit is contained in:
Than Ngo 2015-11-13 16:01:16 +01:00
parent 5b8ceef1ab
commit f086598d07

View File

@ -5,7 +5,7 @@ Version: 3.10.2
%if "%{?enable_native_atlas}" != "0" %if "%{?enable_native_atlas}" != "0"
%define dist .native %define dist .native
%endif %endif
Release: 8%{?dist} Release: 9%{?dist}
Summary: Automatically Tuned Linear Algebra Software Summary: Automatically Tuned Linear Algebra Software
Group: System Environment/Libraries Group: System Environment/Libraries
@ -311,7 +311,10 @@ ix86 architecture.
%endif %endif
%ifarch ppc64 %ifarch ppc64
%define arch_option -A 7 %global arch_option -A 7
%global assembler_option -Wa,--noexecstack,-mpower7
%else
%global assembler_option -Wa,--noexecstack
%endif %endif
%prep %prep
@ -389,7 +392,7 @@ for type in %{types}; do
mkdir -p %{_arch}_${type} mkdir -p %{_arch}_${type}
pushd %{_arch}_${type} pushd %{_arch}_${type}
../configure %{mode} %{?threads_option} %{?arch_option} -D c -DWALL -Fa alg '%{armflags} -g -Wa,--noexecstack -fPIC'\ ../configure %{mode} %{?threads_option} %{?arch_option} -D c -DWALL -Fa alg '%{armflags} -g %{assembler_option} -fPIC'\
--prefix=%{buildroot}%{_prefix} \ --prefix=%{buildroot}%{_prefix} \
--incdir=%{buildroot}%{_includedir} \ --incdir=%{buildroot}%{_includedir} \
--libdir=%{buildroot}%{_libdir}/${libname} --libdir=%{buildroot}%{_libdir}/${libname}
@ -830,6 +833,9 @@ fi
%endif %endif
%changelog %changelog
* Fri Nov 13 2015 Than Ngo <than@redhat.com> 3.10.2-9
- add correct assembler option for ppc64
* Wed Nov 04 2015 Than Ngo <than@redhat.com> - 3.10.2-8 * Wed Nov 04 2015 Than Ngo <than@redhat.com> - 3.10.2-8
- add correct machine type for ppc64 -> fix build failure on ppc64 - add correct machine type for ppc64 -> fix build failure on ppc64