Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

[Buildsystem] Fix relative symbols on some targets with LTO

A Thousand Ships80b203efd06b
diff --git a/SConstruct b/SConstruct
index cf4beb08cd7..37d790f9713 100644
--- a/SConstruct
+++ b/SConstruct
@@ -879,6 +879,7 @@ else:
# Remap absolute paths to relative paths for debug symbols.
project_path = Dir("#").abspath
env.AppendUnique(CCFLAGS=[f"-ffile-prefix-map={project_path}=."])
+ env.AppendUnique(LINKFLAGS=[f"-ffile-prefix-map={project_path}=."])
else:
if methods.is_apple_clang(env):
# Apple Clang, its linker doesn't like -s.