X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=a435066515d947e14d388058a053f6f3d1baa16b;hp=b4ecee324fe9d716f2e0a249bfac35ef083492b5;hb=3dccdf5b835b9856bcf869fbad90ae4914a2813c;hpb=4a4513d126233ce639b413877d155e870cc4cf5c diff --git a/src/Makefile b/src/Makefile index b4ecee32..a4350665 100644 --- a/src/Makefile +++ b/src/Makefile @@ -243,7 +243,12 @@ ifeq ($(os),osx) endif ### 3.3 General linker settings -LDFLAGS = -lpthread $(EXTRALDFLAGS) +LDFLAGS = $(EXTRALDFLAGS) + +### On mingw use Windows threads, otherwise POSIX +ifneq ($(comp),mingw) + LDFLAGS += -lpthread +endif ifeq ($(os),osx) LDFLAGS += -arch $(arch)