Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
butcherg opened this issue May 15, 2024 · 0 comments
Open

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

butcherg opened this issue May 15, 2024 · 0 comments

Comments

@butcherg
Copy link

butcherg commented May 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant