The current CLEW tag 0.10 always links -ldl, which breaks cross-compiling for Windows with MXE. The master branch fixes this by linking dl only on non-Windows platforms with if(UNIX) in src/CMakeLists.txt, but no new tag exists.
Suggested action: Create a new tag (e.g., v0.11) from the fixed master so MXE and Windows builds work correctly. In the meantime, I have forked the CLEW repository and will create a tag there to serve as the official target for MXE cross-compilation: https://github.com/hkunz/clew.
The current CLEW tag
0.10always links-ldl, which breaks cross-compiling for Windows with MXE. The master branch fixes this by linkingdlonly on non-Windows platforms withif(UNIX)insrc/CMakeLists.txt, but no new tag exists.Suggested action: Create a new tag (e.g., v0.11) from the fixed master so MXE and Windows builds work correctly. In the meantime, I have forked the CLEW repository and will create a tag there to serve as the official target for MXE cross-compilation: https://github.com/hkunz/clew.