-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Build files: consistency of binaries names on Windows between CMakeLists and Makefiles #652
Comments
Further to what is described above, when building static zlib using CMake on Windows, the output lib ( |
Do you or anyone else here have an opinion on what those names should be? |
I’m personally not bothered about naming inconsistencies, as long as usage of the pkg-config |
With MinGW (and MSYS/Cygwin) the expected names are: |
To follow this ticket |
Also: building in WSL (ubuntu 22.10 on it) fails to run Likewise, I have a situation where I would like to build zlib for |
See upstream bug: madler/zlib#652 Without this workaround packagies using zlib via pkg-config won't link (that is, raqm and harfbuzz)
For Windows builds, zlib provides 4 build files:
For a given compiler, names of generated binaries are not consistent among these build systems:
MinGW:
libz.a
libz.dll.a
&zlib1.dll
libzlibstatic.a
libzlib.dll.a
&libzlib1.dll
Visual Studio:
zlib.lib
zdll.lib
&zlib1.dll
zlibstat.lib
zlibwapi.lib
&zlibwapi.dll
zlibstatic[d].lib
zlib[d].lib
&zlib[d]1.dll
Wouldn't it be better to follow Makefiles names in CMakeLists.txt? What is considered canonical name for each compiler?
The text was updated successfully, but these errors were encountered: