]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Allow passing RTLIB=compiler-rt to make
[stockfish] / src / Makefile
index bf3c3560bbd8efa375d3cc62eac520d173c86813..1d972cffc281c43dd10a299d806bdc3f15a5206f 100644 (file)
@@ -386,10 +386,12 @@ ifeq ($(COMP),clang)
        ifneq ($(KERNEL),Darwin)
        ifneq ($(KERNEL),OpenBSD)
        ifneq ($(KERNEL),FreeBSD)
+       ifneq ($(RTLIB),compiler-rt)
                LDFLAGS += -latomic
        endif
        endif
        endif
+       endif
 
        ifeq ($(arch),$(filter $(arch),armv7 armv8))
                ifeq ($(OS),Android)