From 9d9579e60f171536025f49f820de70287657fcc7 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Wed, 2 Sep 2020 06:09:06 +0200
Subject: [PATCH] mingw32: Add missing libraries to make Gem work again.

---
 packages/win32_inno/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile
index 89714fead..aca72ba29 100755
--- a/packages/win32_inno/Makefile
+++ b/packages/win32_inno/Makefile
@@ -132,6 +132,11 @@ ifneq ($(LIGHT),yes)
 	install -p $(bin_src)/libpcre-1.dll $(DESTDIR)$(bindir)/
 	install -p $(bin_src)/libgraphite2.dll $(DESTDIR)$(bindir)/
 	install -p $(bin_src)/libjpeg-8.dll $(DESTDIR)$(bindir)/
+	# New: lossless compression algorithm. Gem.dll won't load without it.
+	# Cf.: https://github.com/bagder/libbrotli. Looks like this recently
+	# got added to MSYS2. Apparently Gem needs only the decoder , but we
+	# include the entire shebang just in case.
+	install -p $(bin_src)/libbrotli*.dll $(DESTDIR)$(bindir)/
 	# Apparently these Gem dependencies must be in the bindir
 	# to be found on Windows
 	-install -p $(DESTDIR)/extra/Gem/gem_film*.dll $(DESTDIR)$(bindir)/
-- 
GitLab