logo

overlay

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

godot-4.3-scons.patch (1267B)


  1. From efb2d5ef9fb64d681036a617c40e42be29ab3e9c Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Fri, 14 Jun 2024 13:13:14 +0200
  4. Subject: [PATCH] scons: $AR, disable stripping
  5. ---
  6. SConstruct | 3 +--
  7. 1 file changed, 1 insertion(+), 2 deletions(-)
  8. diff --git a/SConstruct b/SConstruct
  9. index 8d2d0b4eb8..b580977bac 100644
  10. --- a/SConstruct
  11. +++ b/SConstruct
  12. @@ -290,6 +290,7 @@ opts.Add(BoolVariable("builtin_zstd", "Use the built-in Zstd library", True))
  13. # be overridden for a specific platform), the lowercase ones are appended.
  14. opts.Add("CXX", "C++ compiler binary")
  15. opts.Add("CC", "C compiler binary")
  16. +opts.Add("AR", "Archiver binary")
  17. opts.Add("LINK", "Linker binary")
  18. opts.Add("cppdefines", "Custom defines for the pre-processor")
  19. opts.Add("ccflags", "Custom flags for both the C and C++ compilers")
  20. @@ -751,8 +752,6 @@ else:
  21. if methods.is_apple_clang(env):
  22. # Apple Clang, its linker doesn't like -s.
  23. env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
  24. - else:
  25. - env.Append(LINKFLAGS=["-s"])
  26. # Linker needs optimization flags too, at least for Emscripten.
  27. # For other toolchains, this _may_ be useful for LTO too to disambiguate.
  28. --
  29. 2.45.2