diff options
author | Hein-Pieter van Braam-Stewart <hp@tmm.cx> | 2021-02-20 16:40:55 +0100 |
---|---|---|
committer | Hein-Pieter van Braam-Stewart <hp@tmm.cx> | 2021-02-20 16:40:55 +0100 |
commit | c9b3a00a63fafa546bf402e32fd21ebe7f274b43 (patch) | |
tree | f2201a444236487b23a3c96b989a8e7cd2cf6f3e | |
parent | ed8333f6bc7d0f6b721a5ddf610f1e76793cb78e (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.py | 1 |
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"]: |