summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHein-Pieter van Braam-Stewart <hp@tmm.cx>2021-02-20 16:40:55 +0100
committerHein-Pieter van Braam-Stewart <hp@tmm.cx>2021-02-20 16:40:55 +0100
commitc9b3a00a63fafa546bf402e32fd21ebe7f274b43 (patch)
treef2201a444236487b23a3c96b989a8e7cd2cf6f3e
parented8333f6bc7d0f6b721a5ddf610f1e76793cb78e (diff)
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
-rw-r--r--platform/linuxbsd/detect.py1
1 files changed, 1 insertions, 0 deletions
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"]: