workaround OOM on armv7 builders (#2021376)

This commit is contained in:
Dan Horák 2021-11-24 11:07:40 +01:00
parent 451bb2c5c3
commit 1072aa48c9

View File

@ -41,11 +41,6 @@ BuildRequires: pkgconfig(tbb) >= 3.0
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(zlib) > 1.2.7
# Temporarily exclude armv7hl support due to
# exhausted virtual memory
# https://bugzilla.redhat.com/show_bug.cgi?id=2021376
ExcludeArch: armv7hl
%description
OpenVDB is an Academy Award-winning open-source C++ library comprising a novel
@ -105,7 +100,11 @@ sed -i \
%build
export CXXFLAGS="%{optflags} -Wl,--as-needed"
%ifarch %{arm}
# https://bugzilla.redhat.com/show_bug.cgi?id=2021376
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
export CXXFLAGS="%{build_cxxflags} -Wl,--as-needed"
# Ignore versions (python 3, etc.)
%cmake \