Linking CXX executable ../../freeorion
/usr/bin/ld.bfd.real: CMakeFiles/freeorion.dir/__/__/util/GZStream.cpp.o: undefined reference to symbol 'gzclose'
/usr/bin/ld.bfd.real: note: 'gzclose' is defined in DSO /usr/lib64/libz.so.1 so try adding it to the linker command line
/usr/lib64/libz.so.1: could not read symbols: Invalid operation
Attached patch fixes that.
Attachments
[The extension diff has been deactivated and can no longer be displayed.]
Do you know if something changed between Debian versions that would explain why this is needed now? It seems like a strange omission, and I don't recall (m)any previous similar issues recently...
Also, does it work fine to put the ZLIB_LIBRARY mention in the earlier list of libraries for all platforms:
Well, my wild guess would be that this relates to the fact that at least upstream libpng has some changes how it depends on zlib. So you may not get zlib linked in for free when linking against libpng like you used to. Their homepage (http://www.libpng.org/pub/png/libpng.html) mentions just header handling, though.