diff --git a/mlpack.spec b/mlpack.spec index c6cb9cc..5abe8e9 100644 --- a/mlpack.spec +++ b/mlpack.spec @@ -155,6 +155,12 @@ cmake -D CMAKE_C_FLAGS="`echo %{optflags} | sed 's/-pipe//g' | sed 's/$/ --param cd ..; %endif +%ifarch i686 +cd %{_vpath_builddir}; +cmake -D CMAKE_C_FLAGS="`echo %{optflags} | sed 's/-pipe//g' | sed 's/$/ --param ggc-min-heapsize=32768 --param ggc-min-expand=1/'`" -D CMAKE_CXX_FLAGS="`echo %{optflags} | sed 's/-pipe//g' | sed 's/$/ --param ggc-min-heapsize=32768 --param ggc-min-expand=1/'`" . +cd ..; +%endif + # Don't use %make because it could use too much RAM with multiple cores on Koji... %{cmake_build} # Build documentation ('doc' is not in the list of default targets).