Merge pull request #57593 from akien-mga/fix-server-macos-no-static-cpp

This commit is contained in:
Rémi Verschelde 2022-02-04 00:15:49 +01:00 committed by GitHub
commit aa418d06c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,6 +259,12 @@ def configure(env):
if env["execinfo"]:
env.Append(LIBS=["execinfo"])
# Link those statically for portability
if env["use_static_cpp"]:
env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])
if platform.system() != "Darwin":
# Link those statically for portability
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"
else:
if env["use_llvm"] and platform.system() != "FreeBSD":
env.Append(LIBS=["atomic"])