Fix RHBZ#2171765

- Reduce the debuginfo level to avoid virtual memory exhaustion on
  32-bit architectures
This commit is contained in:
Benjamin A. Beasley 2023-02-20 11:32:49 -05:00
parent 8ac8bc42ba
commit e6870bdc24
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ sed -e "s|^\(CXXFLAGS = \).*|\1%{optflags} $RPM_LD_FLAGS|" \
%build
%set_build_flags
%if %{__isa_bits} == 32
# Reduce the debuginfo level to avoid virtual memory exhaustion
CXXFLAGS="${CXXFLAGS-} -g1"
%endif
pushd tools
# can't use make_build macro below because parallel make with CGAL exhausts
# vm's memory and crash the building process, use sequential make instead