]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Fixes FreeBSD compilation when using Clang
[stockfish] / src / Makefile
index 54868b39b4682e8c0788cb33ebae04bb9da46756..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)
@@ -711,7 +713,7 @@ endif
         config-sanity icc-profile-use icc-profile-make gcc-profile-use gcc-profile-make \
         clang-profile-use clang-profile-make
 
-build: config-sanity net
+build: net config-sanity
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
 
 profile-build: net config-sanity objclean profileclean
@@ -784,7 +786,7 @@ default:
 
 all: $(EXE) .depend
 
-config-sanity:
+config-sanity: net
        @echo ""
        @echo "Config:"
        @echo "debug: '$(debug)'"