diff --git a/mlpack.spec b/mlpack.spec index d418822..4805036 100644 --- a/mlpack.spec +++ b/mlpack.spec @@ -162,6 +162,9 @@ margins. This package provides the Python bindings for mlpack. %{cmake} -D LIBDIR=%{_libdir} -D DEBUG=OFF -D PROFILE=OFF -D PYTHON_EXECUTABLE=$(which python2) . %endif +# Remove -pipe for memory savings. +cmake -D CFLAGS=`echo %{optflags} | sed -e 's/-pipe//g'` . + # Don't use %make because it could use too much RAM with multiple cores on Koji... make # Build documentation ('doc' is not in the list of default targets).