mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix: Libgodot build on Linux.
This commit is contained in:
parent
295e465fe4
commit
0a584250ae
4 changed files with 41 additions and 38 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue