Files
guru/dev-games/godot-dotnet/files/godot-4.5-scons.patch

21 lines
582 B
Diff

Respect AR (bug #977691), RANLIB, and avoid passing unnecessary flags.
--- a/SConstruct
+++ b/SConstruct
@@ -804,3 +804,3 @@
# `-msse2` is implied when compiling for x86_64.
- env.Append(CCFLAGS=["-msse4.2", "-mpopcnt"])
+ pass
elif env["arch"] == "x86_32":
@@ -883,3 +883,3 @@
else:
- env.AppendUnique(LINKFLAGS=["-s"])
+ pass
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -118,2 +118,4 @@
## Compiler configuration
+ env["AR"] = os.environ["AR"]
+ env["RANLIB"] = os.environ["RANLIB"]