1 diff -ur OpenCV-2.4.2.orig//cmake/OpenCVCompilerOptions.cmake OpenCV-2.4.2/cmake/OpenCVCompilerOptions.cmake
2 --- OpenCV-2.4.2.orig//cmake/OpenCVCompilerOptions.cmake 2012-07-09 23:40:12.980147858 +0000
3 +++ OpenCV-2.4.2/cmake/OpenCVCompilerOptions.cmake 2012-07-09 23:46:59.773180868 +0000
8 +add_extra_compiler_option(-D__STDC_CONSTANT_MACROS)
11 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838
12 # here we are trying to workaround the problem
14 add_extra_compiler_option(-Werror)
17 - if(X86 AND NOT MINGW64 AND NOT X86_64 AND NOT APPLE)
18 - add_extra_compiler_option(-march=i686)
22 if(ENABLE_OMIT_FRAME_POINTER)
23 add_extra_compiler_option(-fomit-frame-pointer)