diff src/Make_cyg_ming.mak @ 15707:be41b51f69c7 v8.1.0861

patch 8.1.0861: building with MinGW and static libc doesn't work commit https://github.com/vim/vim/commit/60f807b3f71a92881e2b3bf48bd016294957130e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 14:43:19 2019 +0100 patch 8.1.0861: building with MinGW and static libc doesn't work Problem: Building with MinGW and static libc doesn't work. Solution: Change the LIB argument. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 14:45:06 +0100
parents 2d941023bd2f
children 99ebf78686a9
line wrap: on
line diff
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -931,7 +931,8 @@ endif
 ifeq (yes, $(USE_STDCPLUS))
 LINK = $(CXX)
 ifeq (yes, $(STATIC_STDCPLUS))
-LIB += -static-libstdc++ -static-libgcc
+#LIB += -static-libstdc++ -static-libgcc
+LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
 endif
 else
 LINK = $(CC)