16 lines
805 B
Diff
16 lines
805 B
Diff
diff -rupN --no-dereference opencv-4.2.0/modules/python/common.cmake opencv-4.2.0-new/modules/python/common.cmake
|
|
--- opencv-4.2.0/modules/python/common.cmake 2019-12-20 14:44:16.000000000 +0100
|
|
+++ opencv-4.2.0-new/modules/python/common.cmake 2020-02-05 18:43:42.061627364 +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 ${cv2_generated_hdrs} ${opencv_userdef_hdrs} ${cv2_custom_hdr})
|
|
if(TARGET gen_opencv_python_source)
|
|
add_dependencies(${the_module} gen_opencv_python_source)
|