Skip to content
Snippets Groups Projects
Commit 717a588f authored by Lars Kanis's avatar Lars Kanis
Browse files

Downgrade zlib version for Windows binary gem to 1.2.7.3.

This is necessary for RubyInstaller versions based on MSYS1 (Ruby < 2.4).

RubyInstaller comes bundled with zlib-1.2.7. Since the zlib1.dll is stored in the
same directory as ruby.exe, it is preferred in the Windows DLL load order.
The zlib1.dll that is bundled with fxruby is not loaded at runtime.

If we build fxruby with a newer zlib version, libpng will make use of the new
function inflateValidate() introduced in zlib-1.2.8, which results in a DLL
load error at runtime. We avoid this by sticking at zlib-1.2.7.
parent b06b8677
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,9 @@ def with_env(hash)
end
end
LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.11'
LIBZ_SOURCE_URI = "http://zlib.net/zlib-#{LIBZ_VERSION}.tar.gz"
# Stick at zlib-1.2.7 for compatibility to MSYS1 based RubyInstaller.
LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.7.3'
LIBZ_SOURCE_URI = "http://zlib.net/fossils/zlib-#{LIBZ_VERSION}.tar.gz"
LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.26'
LIBPNG_SOURCE_URI = "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment