diff --git a/pcl.spec b/pcl.spec index 265d391..75e72b7 100644 --- a/pcl.spec +++ b/pcl.spec @@ -94,9 +94,10 @@ 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 /') +%if "%{_lib}" == "lib" +%global optflags %(echo %{optflags} | sed -e 's/-g /-g1 /' -e 's/-pipe //') %endif + %cmake \ -DWITH_DOCS=ON \ -DWITH_CUDA=OFF \