From c9b3a00a63fafa546bf402e32fd21ebe7f274b43 Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam-Stewart Date: Sat, 20 Feb 2021 16:40:55 +0100 Subject: Use -latomic when linking whe using clang on Linux According to the LLVM documentation when using GNU's libstdc++ clang will not automatically link with -latomic. This is necessary since we merged c++11 atomics support. This fixes linking using Clang on Linux --- platform/linuxbsd/detect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index f87e9cf886..ff521e4e7f 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -127,6 +127,7 @@ def configure(env): env["CC"] = "clang" env["CXX"] = "clang++" env.extra_suffix = ".llvm" + env.extra_suffix + env.Append(LIBS=["atomic"]) if env["use_lld"]: if env["use_llvm"]: -- cgit v1.2.3