]> granicus.if.org Git - vim/commitdiff
patch 8.1.0861: building with MinGW and static libc doesn't work v8.1.0861
authorBram Moolenaar <Bram@vim.org>
Thu, 31 Jan 2019 13:43:19 +0000 (14:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 31 Jan 2019 13:43:19 +0000 (14:43 +0100)
Problem:    Building with MinGW and static libc doesn't work.
Solution:   Change the LIB argument. (Ken Takata)

src/Make_cyg_ming.mak
src/version.c

index 5795b507520d9b85137b39be3616b9df7e080f12..1e26adda5d7d1b89a86d2656c221b83ac343202a 100644 (file)
@@ -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)
index 3478fd576442231d4677a7bd888ab598db71c83b..6470c46705e24906ff93474c2512db82f27d8cdb 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    861,
 /**/
     860,
 /**/