]> granicus.if.org Git - vim/commitdiff
patch 8.0.0115 v8.0.0115
authorBram Moolenaar <Bram@vim.org>
Thu, 1 Dec 2016 19:37:47 +0000 (20:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 1 Dec 2016 19:37:47 +0000 (20:37 +0100)
Problem:    When building with Cygwin libwinpthread isn't found.
Solution:   Link winpthread statically. (jmmerz, closes #1255, closes #1256)

src/Make_cyg_ming.mak
src/version.c

index 63f7fa9a322124e94cd8cbc4ec4ea7b8dfd0fc11..b2927200a30b0fb6aa73dfe361f3a44bcd9034a3 100644 (file)
@@ -81,6 +81,13 @@ ifndef STATIC_STDCPLUS
 STATIC_STDCPLUS=no
 endif
 
+
+# Link against the shared version of libwinpthread by default.  Set
+# STATIC_WINPTHREAD to "yes" to link against static version instead.
+ifndef STATIC_WINPTHREAD
+STATIC_WINPTHREAD=$(STATIC_STDCPLUS)
+endif
+
 # If the user doesn't want gettext, undefine it.
 ifeq (no, $(GETTEXT))
 GETTEXT=
@@ -817,6 +824,10 @@ LIB += -lstdc++
 endif
 endif
 
+ifeq (yes, $(STATIC_WINPTHREAD))
+LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
+endif
+
 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
 
 vimrun.exe: vimrun.c
index 7b11a557be24274d9e30d69b2f36be6c18662130..e0bbcb4fa62156283af5bafbb51328661e73566f 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    115,
 /**/
     114,
 /**/