Link with -static in mingw
authorMarco Costalba <mcostalba@gmail.com>
Sat, 14 Mar 2015 07:49:50 +0000 (08:49 +0100)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sat, 14 Mar 2015 19:23:54 +0000 (19:23 +0000)
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

src/Makefile

index 9d18344..efca394 100644 (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)