In CMakeLists.txt, the recipe for building im2rec includes the lines:
if(MSVC)
target_link_libraries(im2rec mxnet)
else()
target_link_libraries(im2rec ${BEGIN_WHOLE_ARCHIVE} mxnet_static
${END_WHOLE_ARCHIVE})
endif()
Is there some requirement on unix or windows that forces the choice of
static-vs-dynamic linking to mxnet? Is the motivation for static linking that
in general one prefers a more portable binary (even at the expense of a 2GB
executable)? Should there be a flag to let the user select the build approach?