X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;fp=src%2FMakefile;h=0e889888549853abfac6b233e3ca8ba63f4872ee;hp=406f029f39747b88100b85459bd0f208a2ef44da;hb=c5d45d3220f74045aff249c47abd91d8d663b748;hpb=44b1ba89a95f394f3e180eb508f2d7798417c86e diff --git a/src/Makefile b/src/Makefile index 406f029f..0e889888 100644 --- a/src/Makefile +++ b/src/Makefile @@ -404,12 +404,14 @@ ifeq ($(COMP),clang) ifneq ($(KERNEL),Darwin) ifneq ($(KERNEL),OpenBSD) ifneq ($(KERNEL),FreeBSD) + ifneq ($(findstring MINGW,$(KERNEL)),MINGW) ifneq ($(RTLIB),compiler-rt) LDFLAGS += -latomic endif endif endif endif + endif ifeq ($(arch),$(filter $(arch),armv7 armv8)) ifeq ($(OS),Android) @@ -420,6 +422,11 @@ ifeq ($(COMP),clang) CXXFLAGS += -m$(bits) LDFLAGS += -m$(bits) endif + + ifeq ($(findstring MINGW,$(KERNEL)),MINGW) + LDFLAGS += -static + endif + endif ifeq ($(KERNEL),Darwin)