16 lines
805 B
Diff
16 lines
805 B
Diff
diff -rupN --no-dereference opencv-4.5.0/modules/python/common.cmake opencv-4.5.0-new/modules/python/common.cmake
|
|
--- opencv-4.5.0/modules/python/common.cmake 2020-10-11 23:26:07.000000000 +0200
|
|
+++ opencv-4.5.0-new/modules/python/common.cmake 2020-10-23 18:14:42.045593734 +0200
|
|
@@ -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 ${cv2_generated_hdrs} ${opencv_userdef_hdrs} ${cv2_custom_hdr})
|
|
if(TARGET gen_opencv_python_source)
|
|
add_dependencies(${the_module} gen_opencv_python_source)
|