mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Fix Makefile for compilation with clang on Windows
use static compilation and added exclusion of -latomic for Clang/MSYS2 as per ppigazzini's suggestion fixes #3872 closes https://github.com/official-stockfish/Stockfish/pull/3873 No functional change
This commit is contained in:
parent
44b1ba89a9
commit
c5d45d3220
1 changed files with 7 additions and 0 deletions
|
@ -404,12 +404,14 @@ ifeq ($(COMP),clang)
|
||||||
ifneq ($(KERNEL),Darwin)
|
ifneq ($(KERNEL),Darwin)
|
||||||
ifneq ($(KERNEL),OpenBSD)
|
ifneq ($(KERNEL),OpenBSD)
|
||||||
ifneq ($(KERNEL),FreeBSD)
|
ifneq ($(KERNEL),FreeBSD)
|
||||||
|
ifneq ($(findstring MINGW,$(KERNEL)),MINGW)
|
||||||
ifneq ($(RTLIB),compiler-rt)
|
ifneq ($(RTLIB),compiler-rt)
|
||||||
LDFLAGS += -latomic
|
LDFLAGS += -latomic
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(arch),$(filter $(arch),armv7 armv8))
|
ifeq ($(arch),$(filter $(arch),armv7 armv8))
|
||||||
ifeq ($(OS),Android)
|
ifeq ($(OS),Android)
|
||||||
|
@ -420,6 +422,11 @@ ifeq ($(COMP),clang)
|
||||||
CXXFLAGS += -m$(bits)
|
CXXFLAGS += -m$(bits)
|
||||||
LDFLAGS += -m$(bits)
|
LDFLAGS += -m$(bits)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(findstring MINGW,$(KERNEL)),MINGW)
|
||||||
|
LDFLAGS += -static
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(KERNEL),Darwin)
|
ifeq ($(KERNEL),Darwin)
|
||||||
|
|
Loading…
Add table
Reference in a new issue