dev-games/godot-dotnet: respect AR & RANLIB

Closes: https://bugs.gentoo.org/975978
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2026-06-22 17:32:27 -03:00
parent b1af4c5726
commit 7fa74eeae6
2 changed files with 11 additions and 8 deletions

View File

@@ -1,16 +1,20 @@
Respect AR (bug #977691), RANLIB, and avoid passing unnecessary flags.
--- a/SConstruct
+++ b/SConstruct
@@ -304,2 +304,3 @@
opts.Add("CC", "C compiler binary")
+opts.Add("AR", "Archiver")
opts.Add("LINK", "Linker binary")
@@ -745,3 +746,3 @@
@@ -804,3 +804,3 @@
# `-msse2` is implied when compiling for x86_64.
- env.Append(CCFLAGS=["-msse4.2", "-mpopcnt"])
+ pass
elif env["arch"] == "x86_32":
@@ -817,3 +818,3 @@
@@ -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"]

View File

@@ -328,11 +328,10 @@ src_prepare() {
src_compile() {
local -x BUILD_NAME=${BRANDING_OS_ID} # replaces "custom_build" in version
tc-export AR CC CXX RANLIB
filter-lto #921017
local esconsargs=(
AR="$(tc-getAR)" CC="$(tc-getCC)" CXX="$(tc-getCXX)"
progress=no
verbose=yes