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

Fix: Libgodot build on Linux.

This commit is contained in:
Ben Rog-Wilhelm
2025-10-08 17:11:20 -05:00
parent 295e465fe4
commit 0a584250ae
4 changed files with 41 additions and 38 deletions

View File

@@ -182,6 +182,9 @@ def configure(env: "SConsEnvironment"):
env.Append(CCFLAGS=["-ffp-contract=off"])
if env["library_type"] == "shared_library":
env.Append(CCFLAGS=["-fPIC"])
# LTO
if env["lto"] == "auto": # Enable LTO for production.