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
replace zlib with zlib-ng #10888
replace zlib with zlib-ng #10888
Conversation
|
Did you mean to include the last two commits here? |
|
yes |
|
How exactly is |
|
it's needed for me to build with cmake |
|
Okay, gave this a look-over. Seems fine to me except for one thing: As far as I can tell, the zlib-ng CMakeLists.txt only builds the static zlib (which is probably the desired outcome) because other external projects we use (cubeb, glslang, pugixml, maybe something else) sets We should probably make that explicit. I suggest adding a |
|
(To be clear, I think this is poor behavior of zlib-ng -- an undefined |
|
Oh and also, do you want to set the |
yea sounds good
sure. tbh i haven't checked if it actually ...works? I always seem to have to put it manually, git does not insert it itself (even when submodule is created with depth=1 or something) |
|
Hm, apparently |
|
i also dropped the libpng cmake change |
since the benefits are so high, don't link with shared zlib
not required but it seems nice
|
(only updated Externals/licenses.md for zlib-ng) |
|
since I can't create a bug report I will report this directly here @shuffle2 since the merge of this PR. building dolphin installs zlibng over the system zlib, breaking multiple other applications that depend on the functional system zlib |
|
Can you clarify? What system/distribution/version and how exactly are you building dolphin? The default settings should only build a static zlib-ng that gets linked directly into the dolphin binary, which shouldn't affect any other program. |
|
ubuntu bionic 18.04. using system libs whenever possible which is why only the required submodules are pulled. I see that during the make install, and you can see here in the CMakeCache.txt that it isn't static either you can see the file output before installing dolphin: and after installing dolphin |
|
that's unfortunate @theofficialgman :( fwiw we are just calling into zlib-ng's cmake file: https://github.com/zlib-ng/zlib-ng/blob/develop/CMakeLists.txt , and only expect it to be building a static library, which should not get installed along with dolphin. |
similar crc32 perf to #10882 , but this fork can be made a submodule and has more optimizations throughout other parts of their codebase (notably for zlib compress as well as decompress).