16 lines
689 B
Diff
16 lines
689 B
Diff
diff -rupN --no-dereference opencv-4.5.5/modules/python/common.cmake opencv-4.5.5-new/modules/python/common.cmake
|
|
--- opencv-4.5.5/modules/python/common.cmake 2021-12-25 04:53:27.000000000 +0100
|
|
+++ opencv-4.5.5-new/modules/python/common.cmake 2022-01-02 18:41:41.924084733 +0100
|
|
@@ -19,6 +19,11 @@ if(NOT WIN32 AND NOT APPLE AND NOT OPENC
|
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--exclude-libs=ALL")
|
|
endif()
|
|
|
|
+# Pass -Wa,-mbig-obj to linker
|
|
+if(MINGW)
|
|
+ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wa,-mbig-obj")
|
|
+endif()
|
|
+
|
|
ocv_add_library(${the_module} MODULE
|
|
${PYTHON_SOURCE_DIR}/src2/cv2.cpp
|
|
${PYTHON_SOURCE_DIR}/src2/cv2_util.cpp
|