atlas.spec: pass RPM_LD_FLAGS to linker

This commit is contained in:
Jakub Martisko 2018-04-25 09:28:54 +02:00
parent f56da5f7b9
commit 576906d469
1 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Version: 3.10.3
%if "%{?enable_native_atlas}" != "0"
%define dist .native
%endif
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Automatically Tuned Linear Algebra Software
Group: System Environment/Libraries
@ -406,7 +406,7 @@ cd ..
%build
p=$(pwd)
%undefine _strict_symbol_defs_build
%ifarch %{arm}
%global mode %{nil}
%else
@ -495,10 +495,9 @@ for type in %{types}; do
%define pr_power8 %(echo $((%{__isa_bits}+4)))
fi
fi
mkdir -p %{_arch}_${type}
pushd %{_arch}_${type}
../configure %{mode} $thread_options $arg_options -D c -DWALL -Fa alg '%{flags} -g -Wa,--noexecstack -fPIC'\
../configure %{mode} $thread_options $arg_options -D c -DWALL -Fa alg '%{flags} -g -Wa,--noexecstack -fPIC ${RPM_LD_FLAGS}'\
--prefix=%{buildroot}%{_prefix} \
--incdir=%{buildroot}%{_includedir} \
--libdir=%{buildroot}%{_libdir}/${libname}
@ -821,6 +820,9 @@ fi
%endif
%changelog
* Wed Apr 25 2018 Jakub Martisko <jamartis@redhat.com> - 3.10.3-5
- Pass RPM_LD_FLAGS to linker
* Wed Apr 25 2018 Jakub Martisko <jamartis@redhat.com> - 3.10.3-4
- Add gcc to buildrequires