X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=a435066515d947e14d388058a053f6f3d1baa16b;hp=b4ecee324fe9d716f2e0a249bfac35ef083492b5;hb=f7b4983137ef8f5f35761044b52f0c5619098842;hpb=eeef654cd78853c966efe38daf97494bb4caeab1 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)