media-libs/opencv: work around gcc-15 bug in dnn

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116352
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2024-11-05 02:02:46 +00:00
committed by Sam James
parent d9dc4bbd86
commit 10edbadeab
+4
View File
@@ -544,6 +544,10 @@ multilib_src_configure() {
# bug #919101 and https://github.com/opencv/opencv/issues/19020
filter-lto
if tc-is-gcc && [[ $(gcc-major-version) -ge 15 ]] && use contribdnn; then
append-cxxflags "-fno-tree-vectorize"
fi
# please don't sort here, order is the same as in CMakeLists.txt
local mycmakeargs=(
-DMIN_VER_CMAKE=3.26