]> granicus.if.org Git - vim/commitdiff
patch 8.1.0962: building with MinGW and static libs doesn't work v8.1.0962
authorBram Moolenaar <Bram@vim.org>
Thu, 21 Feb 2019 12:34:07 +0000 (13:34 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 21 Feb 2019 12:34:07 +0000 (13:34 +0100)
Problem:    Building with MinGW and static libs doesn't work. (Salman Halim)
Solution:   Add -lgcc. (Ken Takata)

src/Make_cyg_ming.mak
src/version.c

index 03953f4d610e3cba3cb54e66f91226fefafa3ad8..0587b4ded04851e7884b4668d8456bbc32affd9b 100644 (file)
@@ -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)
index db9ab91f7b86c3e1bd78e88df3dd5c59c67efaf7..59a4e029ba435bf5e2b4afa374ea75c450fbfe7c 100644 (file)
@@ -779,6 +779,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    962,
 /**/
     961,
 /**/