gmic icon indicating copy to clipboard operation
gmic copied to clipboard

Add -DCURL_STATICLIB to if(BUILD_LIB_STATIC)... in CMakeLists.txt

Open butcherg opened this issue 9 months ago • 0 comments

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

butcherg avatar May 15 '24 18:05 butcherg