From: Marco Costalba Date: Sat, 14 Mar 2015 07:49:50 +0000 (+0100) Subject: Link with -static in mingw X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e5da0e4b79b405da5bdc42f6fb4c2ba49afba00a;ds=sidebyside 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 --- diff --git a/src/Makefile b/src/Makefile index 9d18344f..efca3947 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)