Skip to content

Commit 60f807b

Browse files
committed
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)
1 parent 77255ca commit 60f807b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Make_cyg_ming.mak

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,8 @@ endif
931931
ifeq (yes, $(USE_STDCPLUS))
932932
LINK = $(CXX)
933933
ifeq (yes, $(STATIC_STDCPLUS))
934-
LIB += -static-libstdc++ -static-libgcc
934+
#LIB += -static-libstdc++ -static-libgcc
935+
LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
935936
endif
936937
else
937938
LINK = $(CC)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
861,
786788
/**/
787789
860,
788790
/**/

0 commit comments

Comments
 (0)