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.)