# HG changeset patch # User Bram Moolenaar # Date 1548942306 -3600 # Node ID be41b51f69c76e2cbecd36917085ce1f804897f3 # Parent b33dc53cc3ffc99fda59c70157520489eb7d3529 patch 8.1.0861: building with MinGW and static libc doesn't work commit https://github.com/vim/vim/commit/60f807b3f71a92881e2b3bf48bd016294957130e Author: Bram Moolenaar 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) diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak --- 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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 861, +/**/ 860, /**/ 859,