mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-26 12:06:22 +08:00
Statically link std libraries under mingw
Allows for easier redistribution. No functional change.
This commit is contained in:
@@ -256,6 +256,10 @@ endif
|
||||
### 3.3 General linker settings
|
||||
LDFLAGS = $(EXTRALDFLAGS)
|
||||
|
||||
ifeq ($(comp),mingw)
|
||||
LDFLAGS += -static-libstdc++ -static-libgcc
|
||||
endif
|
||||
|
||||
### On mingw use Windows threads, otherwise POSIX
|
||||
ifneq ($(comp),mingw)
|
||||
# Haiku has pthreads in its libroot, so only link it in on other platforms
|
||||
|
||||
Reference in New Issue
Block a user