diff --git a/flint.spec b/flint.spec index 87da3e3..4ba0628 100644 --- a/flint.spec +++ b/flint.spec @@ -106,6 +106,9 @@ for fil in $(find . -name \*.c -o -name \*.h); do done %build +# We set HAVE_FAST_COMPILER to 0 on ARM because otherwise the tests exhaust +# virtual memory. If other architectures run out of virtual memory while +# building flintxx/test/t-fmpzxx.cpp, then do likewise. OS=Linux \ MACHINE=%{_arch} \ FLINT_LIB=libflint.so.%{sover} \ @@ -116,8 +119,13 @@ sh -x ./configure \ --with-mpfr=%{_libdir} \ --with-ntl=%{_libdir} \ --enable-cxx \ +%ifarch %{arm} + CFLAGS="%{optflags} -DHAVE_FAST_COMPILER=0" \ + CXXFLAGS="%{optflags} -DHAVE_FAST_COMPILER=0" \ +%else CFLAGS="%{optflags}" \ CXXFLAGS="%{optflags}" \ +%endif LDFLAGS="-Wl,--as-needed $RPM_LD_FLAGS" make %{?_smp_mflags} verbose @@ -134,7 +142,7 @@ ln -s libflint.so.%{sover} %{buildroot}%{_libdir}/libflint.so chmod 0755 %{buildroot}%{_libdir}/libflint.so.%{sover} %check -make check +make check QUIET_CC= QUIET_CXX= QUIET_AR= %post -p /sbin/ldconfig @@ -165,6 +173,7 @@ make check - Minimize the set of LaTeX BRs - Enable verbose build - Link with Fedora LDFLAGS +- On ARM arches, disable tests that exhaust virtual memory while compiling * Mon Aug 5 2013 pcpa - 2.3-1.20130801git4b383e2 - Update to pre 2.4 snapshot that supports gmp, required by sagemath 5.10