From 499250a23f9bdd8001e4a262ce79d36ff0808588 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sat, 19 Mar 2016 21:38:06 -0400
Subject: [PATCH] try adding -ldl for msys2 compatibility

---
 externals/plugin~/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/externals/plugin~/Makefile b/externals/plugin~/Makefile
index 2c4095970..a4174912d 100644
--- a/externals/plugin~/Makefile
+++ b/externals/plugin~/Makefile
@@ -145,7 +145,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
   OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer
   CFLAGS += -mms-bitfields
   LDFLAGS += -s -shared -Wl,--enable-auto-import
-  LIBS += -L"$(PD_PATH)/src" -L"$(PD_PATH)/bin" -L"$(PD_PATH)/obj" -lpd -lwsock32 -lkernel32 -luser32 -lgdi32
+  LIBS += -L"$(PD_PATH)/src" -L"$(PD_PATH)/bin" -L"$(PD_PATH)/obj" -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 -ldl
   STRIP = strip --strip-unneeded -R .note -R .comment
   DISTBINDIR=$(DISTDIR)-$(OS)
 endif
-- 
GitLab