2
0
Fork 0

Exclude atomic lib under FreeBSD using LLVM

4.0
robfram 2021-10-29 18:24:57 +07:00 committed by LinuxUserGD
parent 9f74f0f6c5
commit 9faa92bda0
1 changed files with 2 additions and 2 deletions

@ -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"])