patch 8.1.0861: building with MinGW and static libc doesn't work

Problem:    Building with MinGW and static libc doesn't work.
Solution:   Change the LIB argument. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2019-01-31 14:43:19 +01:00
parent 77255cab74
commit 60f807b3f7
2 changed files with 4 additions and 1 deletions

View 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)

View File

@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
861,
/**/
860,
/**/