1 |
commit: 0bf608a00f6466cb09e7d55b9e2579f0ca0b07c6 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 27 18:50:07 2017 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 27 18:53:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bf608a0 |
7 |
|
8 |
media-libs/opencv: fix mno-sse2 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
media-libs/opencv/files/opencv-3.2.0-cpu-mno-sse2.patch | 11 +++++++++++ |
13 |
media-libs/opencv/opencv-3.2.0-r2.ebuild | 1 + |
14 |
2 files changed, 12 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/opencv/files/opencv-3.2.0-cpu-mno-sse2.patch b/media-libs/opencv/files/opencv-3.2.0-cpu-mno-sse2.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..a73456411f2 |
19 |
--- /dev/null |
20 |
+++ b/media-libs/opencv/files/opencv-3.2.0-cpu-mno-sse2.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- a/cmake/OpenCVCompilerOptions.cmake 2017-07-22 13:26:51.178960091 +0200 |
23 |
++++ b/cmake/OpenCVCompilerOptions.cmake 2017-07-22 13:27:47.238961469 +0200 |
24 |
+@@ -176,8 +176,6 @@ |
25 |
+ endif() |
26 |
+ if(ENABLE_SSE2) |
27 |
+ add_extra_compiler_option(-msse2) |
28 |
+- elseif(X86 OR X86_64) |
29 |
+- add_extra_compiler_option(-mno-sse2) |
30 |
+ endif() |
31 |
+ if(ARM) |
32 |
+ add_extra_compiler_option("-mfp16-format=ieee") |
33 |
|
34 |
diff --git a/media-libs/opencv/opencv-3.2.0-r2.ebuild b/media-libs/opencv/opencv-3.2.0-r2.ebuild |
35 |
index e8fe383042f..6793803ee3b 100644 |
36 |
--- a/media-libs/opencv/opencv-3.2.0-r2.ebuild |
37 |
+++ b/media-libs/opencv/opencv-3.2.0-r2.ebuild |
38 |
@@ -98,6 +98,7 @@ PATCHES=( |
39 |
"${FILESDIR}/${P}-vtk.patch" |
40 |
"${FILESDIR}/${P}-gcc-6.0.patch" |
41 |
"${FILESDIR}/${PN}-3.2.0-fix_ussage_cpu_instructions.patch" |
42 |
+ "${FILESDIR}/${P}-cpu-mno-sse2.patch" |
43 |
) |
44 |
|
45 |
pkg_pretend() { |