Try disabling lto on arm 32-bit to reduce memory usage
This commit is contained in:
parent
b5c1e78c3d
commit
3494a026c2
@ -629,6 +629,10 @@ pushd %{name}-%{version}
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch %{arm}
|
||||||
|
# Likely running out of memory during build
|
||||||
|
%global _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
pushd %{name}-%{version}
|
pushd %{name}-%{version}
|
||||||
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
|
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
|
||||||
%{petsc_build_options} \
|
%{petsc_build_options} \
|
||||||
@ -661,10 +665,6 @@ pushd %{name}-%{version}
|
|||||||
##
|
##
|
||||||
|
|
||||||
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
||||||
%ifarch %{arm}
|
|
||||||
# Likely running out of memory during build
|
|
||||||
[ $RPM_BUILD_NCPUS -gt 3 ] && RPM_BUILD_NCPUS=3
|
|
||||||
%endif
|
|
||||||
make \
|
make \
|
||||||
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/%{name}-%{version} PETSC_ARCH=%{_arch} all
|
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/%{name}-%{version} PETSC_ARCH=%{_arch} all
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user