summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-20 23:58:19 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-20 23:58:19 +0100
commitb86ff83aa84a29cbaa9d8f65fbe2e9fa7098afe7 (patch)
tree1c9bfadd977ec59977efcd8565503179b91bf619 /platform/linuxbsd/detect.py
parentd5838a06faabc9c7a5cc35147a63bc2d5caf28e7 (diff)
parent9faa92bda03be0bb8e24a65e37107feb546d6666 (diff)
Merge pull request #71766 from LinuxUserGD/LinuxUserGD/master
Exclude atomic lib under FreeBSD using LLVM [4.x]
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py4
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"])