testing scratchbuild
This commit is contained in:
parent
cf593362ec
commit
36f4931dfc
18
atlas.spec
18
atlas.spec
|
@ -247,14 +247,14 @@ optimizations for the z10 architecture.
|
|||
|
||||
%prep
|
||||
%setup -q -n ATLAS
|
||||
#%patch0 -p0 -b .shared
|
||||
#patch0 -p0 -b .shared
|
||||
%ifarch s390 s390x
|
||||
%patch1 -p1 -b .s390
|
||||
%endif
|
||||
%ifarch %{arm}
|
||||
%patch2 -p0 -b .arm
|
||||
%endif
|
||||
#%patch3 -p1 -b .melf
|
||||
#patch3 -p1 -b .melf
|
||||
%patch4 -p1 -b .thrott
|
||||
%patch5 -p1 -b .buildid
|
||||
cp %{SOURCE1} CONFIG/ARCHS/
|
||||
|
@ -268,16 +268,24 @@ cp %{SOURCE8} CONFIG/ARCHS/
|
|||
cp %{SOURCE9} CONFIG/ARCHS/
|
||||
|
||||
%build
|
||||
|
||||
for type in %{types}; do
|
||||
if [ "$type" = "base" ]; then
|
||||
libname=atlas
|
||||
%define pr_base %(echo $((%{__isa_bits}+0)))
|
||||
%if "%{?enable_native_atlas}" == "0"
|
||||
%ifarch x86_64
|
||||
%define arch_option -A 32
|
||||
#ISA - SSE1=256, SSE2=128, SSE3=64, AVX=32
|
||||
%define isa_option -V 448
|
||||
%endif
|
||||
%endif
|
||||
else
|
||||
libname=atlas-${type}
|
||||
fi
|
||||
mkdir -p %{_arch}_${type}
|
||||
pushd %{_arch}_${type}
|
||||
../configure -b %{mode} %{?threads_option} %{?arch_option} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
|
||||
../configure -b %{mode} %{?threads_option} %{?isa_option} %{?arch_option} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
|
||||
--prefix=%{buildroot}%{_prefix} \
|
||||
--incdir=%{buildroot}%{_includedir} \
|
||||
--libdir=%{buildroot}%{_libdir}/${libname}
|
||||
|
@ -293,10 +301,10 @@ for type in %{types}; do
|
|||
# sed -i 's#-msse3#-msse2#' Make.inc
|
||||
# sed -i 's#-mavx#-msse2#' Make.inc
|
||||
echo 'skonfigurovane base'
|
||||
# sed -i 's#PMAKE = $(MAKE) .*#PMAKE = $(MAKE) -j 1#' Make.inc
|
||||
sed -i 's#PMAKE = $(MAKE) .*#PMAKE = $(MAKE) -j 1#' Make.inc
|
||||
elif [ "$type" = "sse3" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = HAMMER64SSE3#' Make.inc
|
||||
# sed -i 's#PMAKE = $(MAKE) .*#PMAKE = $(MAKE) -j 1#' Make.inc
|
||||
sed -i 's#PMAKE = $(MAKE) .*#PMAKE = $(MAKE) -j 1#' Make.inc
|
||||
sed -i 's#-DATL_AVX##' Make.inc
|
||||
sed -i 's#-mavx#-msse3#' Make.inc
|
||||
%define pr_sse3 %(echo $((%{__isa_bits}+4)))
|
||||
|
|
Loading…
Reference in New Issue