From e0e5b2f2e34e55b773d3b362b4d474dd96ba1393 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Wed, 14 Sep 2022 06:17:22 -0700 Subject: [PATCH] Disable smp builds for ppc64le and s390 epel In koji, these builds are on low memory, multi core VM's the compiling memory usage for a single file can be > 4G which crashes the build when memory is exhausted. So build with a single compile job by undef-ing _smp_mflags Signed-off-by: Tom Rix --- openvdb.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvdb.spec b/openvdb.spec index 4848113..72e02cb 100644 --- a/openvdb.spec +++ b/openvdb.spec @@ -112,6 +112,11 @@ sed -i \ # https://bugzilla.redhat.com/show_bug.cgi?id=2021376 %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif +%if 0%{?rhel} +%ifarch ppc64le s390x +%undefine _smp_mflags +%endif +%endif export CXXFLAGS="%{build_cxxflags} -Wl,--as-needed" # Ignore versions (python 3, etc.)