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.