]> git.pld-linux.org Git - packages/opencv.git/blob - opencv-cflags.patch
- release 2 (by relup.sh)
[packages/opencv.git] / opencv-cflags.patch
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
4 @@ -47,6 +47,8 @@
5    endif()
6  endmacro()
7  
8 +add_extra_compiler_option(-D__STDC_CONSTANT_MACROS)
9 +
10  if(MINGW)
11    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838
12    # here we are trying to workaround the problem
13 @@ -105,10 +107,6 @@
14      add_extra_compiler_option(-Werror)
15    endif()
16  
17 -  if(X86 AND NOT MINGW64 AND NOT X86_64 AND NOT APPLE)
18 -    add_extra_compiler_option(-march=i686)
19 -  endif()
20 -
21    # Other optimizations
22    if(ENABLE_OMIT_FRAME_POINTER)
23      add_extra_compiler_option(-fomit-frame-pointer)
This page took 0.055217 seconds and 3 git commands to generate.