1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Server: Fix skip libstdc++ static linking on macOS

Fixes #48161.
This commit is contained in:
Rémi Verschelde
2022-02-03 17:54:52 +01:00
parent 8cae6fde0d
commit 94dd9c26dd

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