! , ld Unix OS X. , :
ld: unknown option: -whole-archive
, modules/java/CMakeLists.txt, OS X. ( -whole-archive)
:
target_link_libraries(${the_module} -Wl,-whole-archive ${__deps} -Wl,-no-whole-archive ${__extradeps} ${OPENCV_LINKER_LIBS})
:
foreach(_dep ${__deps})
target_link_libraries(${the_module} -Wl,-force_load "${_dep}")
endforeach()
, .:)
- Edit -
( !); . -force_load , , foreach. , , , -Wl. . pull request 741 git .