# HG changeset patch # User Bram Moolenaar # Date 1550753106 -3600 # Node ID 57a353715a8f68db5e97bde028023e28253be71b # Parent 953e39578078127fe948bb25f59537f3593271eb patch 8.1.0962: building with MinGW and static libs doesn't work commit https://github.com/vim/vim/commit/d91e5dafd5ec57d8e61f1a6ba3628a255785c25c Author: Bram Moolenaar Date: Thu Feb 21 13:34:07 2019 +0100 patch 8.1.0962: building with MinGW and static libs doesn't work Problem: Building with MinGW and static libs doesn't work. (Salman Halim) Solution: Add -lgcc. (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 @@ -932,7 +932,7 @@ ifeq (yes, $(USE_STDCPLUS)) LINK = $(CXX) ifeq (yes, $(STATIC_STDCPLUS)) #LIB += -static-libstdc++ -static-libgcc -LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic +LIB += -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic endif else LINK = $(CC) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 962, +/**/ 961, /**/ 960,