From d9d039cc6df7aa5120c6060b2759196485632a5e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Feb 28 2018 20:04:18 +0000 Subject: Use -g1 to try and reduce memory usage during ARM compile --- diff --git a/pcl.spec b/pcl.spec index d080345..cb57c7a 100644 --- a/pcl.spec +++ b/pcl.spec @@ -99,6 +99,11 @@ sed -i "s/, 'sphinxcontrib.doxylink.doxylink'//g" doc/advanced/content/conf.py d %build mkdir build pushd build +# try to reduce memory usage of compile process (can cause OOM errors +# esp. on ARM builders) +%ifarch %{arm} +%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') +%endif %cmake \ -DWITH_DOCS=ON \ -DWITH_CUDA=OFF \