1
0
Fork 0

Link with -static in mingw

Fixes reported startup error about missing libwinpthread-1.dll
when the dll is not in the path.

The current -static-xxxx flags, introduced with:

https://github.com/official-stockfish/Stockfish/commit/373503f4a9a990054b5

Only take in account standard libraries, but not thread
library.

No functional change.

Resolves #289
pull/291/head
Marco Costalba 2015-03-14 08:49:50 +01:00 committed by Joona Kiiski
parent d71f707040
commit e5da0e4b79
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ ifeq ($(COMP),mingw)
comp=mingw
CXX=g++
CXXFLAGS += -Wextra -Wshadow
LDFLAGS += -static-libstdc++ -static-libgcc
LDFLAGS += -static
endif
ifeq ($(COMP),icc)