-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update vendored libpng from 1.6.43 to 1.6.45.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@madebr : Other than removing the two
PNG_BUILD_ZLIB
lines at 417 and 418 in our cmake, does anything need to be done withZLIB_ROOT
thing? (Can I leave these to you?)51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I do this:
.. then vendored build with shared libpng (thus with shared zlib) seems
to succeed:
However, with
-DSDLIMAGE_PNG_SHARED=OFF
I get the following error:I don't know how to handle things from there.
51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, removing the restrictions from appending ZLIB_LIBRARY to INSTALL_EXTRA_TARGETS fixes the zlibstatic issue:
I don't know why the restriction was there, so I haven't done anything: Leaving to you.
51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, see #502
51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only want to install zlib when it's a shared library, or when it's built as a static library AND SDL_image is built as a static library.
Your fix is perfect: CMake was complaining the generated CMake config files had references to files that were not being installed.
Not installing the config files sidesteps the issues completely.
51307c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It took me a while to notice the root of the issue, though.
P.S.: Testing a backport to SDL2 branch now.