diff options
author | robfram <robfram@gmail.com> | 2021-10-29 18:24:57 +0200 |
---|---|---|
committer | LinuxUserGD <hugegameartgd@gmail.com> | 2023-01-20 20:52:19 +0000 |
commit | 9faa92bda03be0bb8e24a65e37107feb546d6666 (patch) | |
tree | cd280546b6439c25d1fd0a5cbf7ca26efe46c40e /platform/linuxbsd | |
parent | 9f74f0f6c5e5c98b18f4f0ad95092a88d064f616 (diff) |
Exclude atomic lib under FreeBSD using LLVM
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/detect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index f4d36f1a87..1830a7b39b 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -405,9 +405,9 @@ def configure(env: "Environment"): # Link those statically for portability if env["use_static_cpp"]: env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"]) - if env["use_llvm"]: + if env["use_llvm"] and platform.system() != "FreeBSD": env["LINKCOM"] = env["LINKCOM"] + " -l:libatomic.a" else: - if env["use_llvm"]: + if env["use_llvm"] and platform.system() != "FreeBSD": env.Append(LIBS=["atomic"]) |