OpenCV get cpu flags from cmake options. In ebuild: ... -DENABLE_SSE42=OFF ... Then package compile, gcc set next options: x86_64-pc-linux-gnu-g++ ... -maes -O2 -pipe -mmmx -msse4.2 -ftracer -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 ... -mno-sse2 -mno-avx -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 ... I use simd_count script (http://optimization.hardlinux.ru/wp-content/uploads/2013/03/simd_count.zip) to test, which instruction use /usr/lib/libopencv_core.so, /usr/lib/libopencv_imgproc.so and that libs don't use sse{2,3,4} instructions. bash /simd_count /usr/lib/libopencv_core.so cpuid: 2 nop: 11675 call: 23406 i586: 1 i686: 1330 sse: 7552 Reproducible: Always Steps to Reproduce: 1. Compile opencv 2. See flags, which use compiler. 3. bash /simd_count /usr/lib/libopencv_core.so to see result. Actual Results: No some CPU instruction on *so libs. Expected Results: *so libs use cpu optimization instructions. I create pull request, which fix some CPU flags: https://github.com/gentoo/gentoo/pull/5036. It doesn't fix -fomit-frame-pointer
*** Bug 623612 has been marked as a duplicate of this bug. ***
author Yurii Moskalenko <yuramuv@gmail.com> 2017-07-03 04:21:32 +0300 committer Amy Liffey <amynka@gentoo.org> 2017-07-27 20:36:55 +0200 commit e62eff34b2ebd90b7b23812d793456df4dba22fc media-libs/opencv: Fix usage CPU instructions author Amy Liffey <amynka@gentoo.org> 2017-07-27 20:50:07 +0200 committer Amy Liffey <amynka@gentoo.org> 2017-07-27 20:53:52 +0200 commit 0bf608a00f6466cb09e7d55b9e2579f0ca0b07c6 media-libs/opencv: fix mno-sse2