Fix compile when using llvm on linux.

This commit is contained in:
Relintai 2022-04-02 12:58:52 +02:00
parent e419b12067
commit d4c57cf537
2 changed files with 4 additions and 2 deletions

View File

@ -234,7 +234,8 @@ def configure(env):
if env["use_static_cpp"]:
env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])
if env["use_llvm"] and platform.system() != "FreeBSD":
env["LINKCOM"] = env["LINKCOM"] + " -l:libatomic.a"
#env["LINKCOM"] = env["LINKCOM"] + " -l:libatomic.a"
env["LINKCOM"] = env["LINKCOM"] + " -latomic"
else:
if env["use_llvm"] and platform.system() != "FreeBSD":
env.Append(LIBS=["atomic"])

View File

@ -374,7 +374,8 @@ def configure(env):
if env["use_static_cpp"]:
env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])
if env["use_llvm"] and platform.system() != "FreeBSD":
env["LINKCOM"] = env["LINKCOM"] + " -l:libatomic.a"
#env["LINKCOM"] = env["LINKCOM"] + " -l:libatomic.a"
env["LINKCOM"] = env["LINKCOM"] + " -latomic"
else:
if env["use_llvm"] and platform.system() != "FreeBSD":