From 8a49a64a4e6f7269bef70ffa206fb4b4585497bc Mon Sep 17 00:00:00 2001 From: Jerry James Date: Apr 16 2016 17:44:55 +0000 Subject: Attempt to reduce gcc memory needs on ARM by changing -O2 to -O1. --- diff --git a/polymake.spec b/polymake.spec index 4d0f7f6..28663e2 100644 --- a/polymake.spec +++ b/polymake.spec @@ -11,6 +11,12 @@ # can be removed. %bcond_with system_normaliz +%ifarch %{arm} +# The ARM builders almost always run out of memory while building polymake. +# Reduce the optimization level in an effort to avoid this. +%global __global_cflags %(sed 's/-O2/-O1/' <<< %__global_cflags) +%endif +e Name: polymake Version: 3.0r1 Release: 1%{?dist}