logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

godot-4.3-scons.patch (1306B)


  1. commit 70b4027ff97fe5aa0c9792020795cab38645a354
  2. Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. Date: 2024-06-14 13:13:14 +0200
  4. scons: $AR, disable stripping
  5. diff --git a/SConstruct b/SConstruct
  6. index f4b8f03519..4b2bee8ee8 100644
  7. --- a/SConstruct
  8. +++ b/SConstruct
  9. @@ -292,6 +292,7 @@ opts.Add(BoolVariable("builtin_zstd", "Use the built-in Zstd library", True))
  10. # be overridden for a specific platform), the lowercase ones are appended.
  11. opts.Add("CXX", "C++ compiler binary")
  12. opts.Add("CC", "C compiler binary")
  13. +opts.Add("AR", "Archiver binary")
  14. opts.Add("LINK", "Linker binary")
  15. opts.Add("cppdefines", "Custom defines for the pre-processor")
  16. opts.Add("ccflags", "Custom flags for both the C and C++ compilers")
  17. @@ -720,12 +721,6 @@ else:
  18. # Remap absolute paths to relative paths for debug symbols.
  19. project_path = Dir("#").abspath
  20. env.Append(CCFLAGS=[f"-ffile-prefix-map={project_path}=."])
  21. - else:
  22. - if methods.using_clang(env) and not methods.is_vanilla_clang(env):
  23. - # Apple Clang, its linker doesn't like -s.
  24. - env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
  25. - else:
  26. - env.Append(LINKFLAGS=["-s"])
  27. if env["optimize"] == "speed":
  28. env.Append(CCFLAGS=["-O3"])