From ea70ee23b821ec7d67286e6f1c7df163566562fd Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sat, 19 Mar 2016 20:31:59 -0400
Subject: [PATCH] remove -liberty flag as libiberty isn't available on msys2
 (and it isn't needed on linux/osx)

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

diff --git a/externals/maxlib/Makefile b/externals/maxlib/Makefile
index 7f8a16eef..3eeccff41 100644
--- a/externals/maxlib/Makefile
+++ b/externals/maxlib/Makefile
@@ -256,7 +256,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
   ALL_LDFLAGS += -s -shared -Wl,--enable-auto-import
   SHARED_LDFLAGS += -shared
   ALL_LIBS += -L"$(PD_PATH)/src" -L"$(PD_PATH)/bin" -L"$(PD_PATH)/obj" \
-	-lpd -lwsock32 -lkernel32 -luser32 -lgdi32 -liberty $(LIBS_windows)
+	-lpd -lwsock32 -lkernel32 -luser32 -lgdi32 $(LIBS_windows)
   STRIP = strip --strip-unneeded -R .note -R .comment
   DISTBINDIR=$(DISTDIR)-$(OS)
 endif
-- 
GitLab