From 2c8014e565f5efb0c1a2f6ded05985d702336878 Mon Sep 17 00:00:00 2001 From: robfram Date: Fri, 29 Oct 2021 18:24:57 +0200 Subject: [PATCH] Exclude atomic lib under FreeBSD using LLVM --- platform/x11/detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 80afc6129c2..649891ce17d 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -393,9 +393,9 @@ def configure(env): # 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"])