gmic
gmic copied to clipboard
Add -DCURL_STATICLIB to if(BUILD_LIB_STATIC)... in CMakeLists.txt
I'm incorporating libgmic into rawproc, my WIN32 target is compiled by mxe, an all-static toolchain. rawproc link errors out on libgmic undefined references to '__imp_curl_easy*' calls.
What's needed is a ADD_DEFINITIONS(DCURL_STATICLIB )
to the if(BUILD_LIB_STATIC) ... endif()
block in CMakeLists.txt to compel libgmic to use the curl static calls. Probably also need the equivalent in src/Makefile, but I haven't researched that one.
ref: https://curl.se/docs/faq.html#Link_errors_when_building_libcur