Fixes FreeBSD compilation when using Clang
[stockfish] / src / Makefile
index 87203547f2865705d8154b2c25966fa8895e8184..55139a1f75eb92dc34e8628721cadef8f73b9b27 100644 (file)
@@ -366,9 +366,11 @@ ifeq ($(COMP),clang)
 
        ifneq ($(KERNEL),Darwin)
        ifneq ($(KERNEL),OpenBSD)
+       ifneq ($(KERNEL),FreeBSD)
                LDFLAGS += -latomic
        endif
        endif
+       endif
 
        ifeq ($(arch),$(filter $(arch),armv7 armv8))
                ifeq ($(OS),Android)