mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-27 12:36:15 +08:00
Do not require -lpthread when linking in mingw
With this we should compeltely remove the need of installing third party POSIX threads library when compiling with mingw-gcc under Windows. Spotted by Trung Tu. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user