diff --git a/opencv.spec b/opencv.spec index ce4512b..0522448 100644 --- a/opencv.spec +++ b/opencv.spec @@ -270,6 +270,9 @@ install -pm 0644 %{SOURCE4} .cache/ade/ %ifarch ppc64le # Disable some altivec vectorization optimization on ppc64le (bug 2051193) +# Workaround is to force defining CV_FORCE_SIMD128_CPP on ppc64le so as NOT to use intrin_vsx.hpp . +# https://github.com/opencv/opencv/issues/21465 +# https://github.com/opencv/opencv/issues/19020 sed -i modules/core/include/opencv2/core/hal/intrin.hpp \ -e '\@ifdef CV_FORCE_SIMD128_CPP@i #define CV_FORCE_SIMD128_CPP' %endif