mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
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:
@@ -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"]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user