summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/opencv/files/opencv-2.4.0-cflags.patch')
-rw-r--r--media-libs/opencv/files/opencv-2.4.0-cflags.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/opencv/files/opencv-2.4.0-cflags.patch b/media-libs/opencv/files/opencv-2.4.0-cflags.patch
new file mode 100644
index 000000000000..e4093ebcef80
--- /dev/null
+++ b/media-libs/opencv/files/opencv-2.4.0-cflags.patch
@@ -0,0 +1,21 @@
+diff -ruN OpenCV-2.4.0.orig/cmake/OpenCVCompilerOptions.cmake OpenCV-2.4.0/cmake/OpenCVCompilerOptions.cmake
+--- OpenCV-2.4.0.orig/cmake/OpenCVCompilerOptions.cmake 2012-04-27 01:47:48.000000000 +0200
++++ OpenCV-2.4.0/cmake/OpenCVCompilerOptions.cmake 2012-05-28 21:58:15.000000000 +0200
+@@ -40,17 +40,6 @@
+ endif()
+
+ # Other optimizations
+- if(ENABLE_OMIT_FRAME_POINTER)
+- set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -fomit-frame-pointer")
+- else()
+- set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -fno-omit-frame-pointer")
+- endif()
+- if(ENABLE_FAST_MATH)
+- set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -ffast-math")
+- endif()
+- if(ENABLE_POWERPC)
+- set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -mcpu=G3 -mtune=G5")
+- endif()
+ if(ENABLE_SSE)
+ set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -msse")
+ endif()