patch 8.0.0115
Problem: When building with Cygwin libwinpthread isn't found. Solution: Link winpthread statically. (jmmerz, closes #1255, closes #1256)
This commit is contained in:
@ -81,6 +81,13 @@ ifndef STATIC_STDCPLUS
|
|||||||
STATIC_STDCPLUS=no
|
STATIC_STDCPLUS=no
|
||||||
endif
|
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.
|
# If the user doesn't want gettext, undefine it.
|
||||||
ifeq (no, $(GETTEXT))
|
ifeq (no, $(GETTEXT))
|
||||||
GETTEXT=
|
GETTEXT=
|
||||||
@ -817,6 +824,10 @@ LIB += -lstdc++
|
|||||||
endif
|
endif
|
||||||
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
|
all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
|
||||||
|
|
||||||
vimrun.exe: vimrun.c
|
vimrun.exe: vimrun.c
|
||||||
|
|||||||
@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
115,
|
||||||
/**/
|
/**/
|
||||||
114,
|
114,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user