Commit 6d66501137967badc6f646d92ad62432ab8b296f

Biswapriyo Nath 2021-03-28T21:24:41

Makefile: Fix shared library build in MinGW. This enables -no-undefined linker flag in mingw toolchain. Previous related commit 4b850954056943be03452c9a2b4bb621d663e40b

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makefile_include.mk b/makefile_include.mk
index 0d17cec..dca5c3b 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -102,7 +102,7 @@ endif
 ifeq ($(PLATFORM), Darwin)
 LTM_CFLAGS += -Wno-nullability-completeness
 endif
-ifeq ($(PLATFORM), CYGWIN)
+ifneq ($(findstring $(PLATFORM),CYGWIN MINGW32 MINGW64 MSYS),)
 LIBTOOLFLAGS += -no-undefined
 endif