[opencv/f14/master] - Disable -msse and -msse2 on x86_32

Nicolas Chauvet kwizart at fedoraproject.org
Thu Jan 6 17:12:15 UTC 2011


commit 8741153e4f74f0d606b0fa4eb525ecccb1cc5c2b
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Thu Jan 6 18:13:30 2011 +0100

    - Disable -msse and -msse2 on x86_32

 opencv.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/opencv.spec b/opencv.spec
index 9f59769..d1a9cb4 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -4,7 +4,7 @@
 
 Name:           opencv
 Version:        2.1.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Collection of algorithms for computer vision
 
 Group:          Development/Libraries
@@ -115,6 +115,12 @@ find -perm 755 -name "*.c" -exec chmod -x  {} ';'
 # fix dos end of lines
 sed -i 's|\r||g'  samples/c/adaptiveskindetector.cpp
 
+#Fix Flags
+sed -i -e 's/USE_O3 ON/USE_O3 OFF/' CMakeLists.txt
+%ifarch %{ix86}
+sed -i -e 's/ENABLE_SSE ON/ENABLE_SSE OFF/' CMakeLists.txt
+sed -i -e 's/ENABLE_SSE2 ON/ENABLE_SSE2 OFF/' CMakeLists.txt
+%endif
 
 %build
 # enabled by default if libraries are presents at build time:
@@ -215,6 +221,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Jan 06 2011 Nicolas Chauvet <kwizart at gmail.com> - 2.1.0-6
+- Disable -msse and -msse2 on x86_32
+
 * Wed Aug 25 2010 Rex Dieter <rdieter at fedoraproject.org> - 2.1.0-5
 - -devel: include OpenCVConfig.cmake (#627359)
 


More information about the scm-commits mailing list