summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:36 +0100
commit11964fb569a8c716120b240f067efd4a996b9ecb (patch)
treeb8b9cb71861fc97ce1c48f228674cb864618865f /platform/linuxbsd/detect.py
parent261952a4c712e173994d596ef1161e97d812ffd3 (diff)
parent625c4bdacef4173f94200632362e25e537ad5d21 (diff)
downloadredot-engine-11964fb569a8c716120b240f067efd4a996b9ecb.tar.gz
Merge pull request #87464 from bruvzg/pck_section
[Linux] Add support for PCK embedding section with non GNU-ld linkers.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index b71dbbb91c..94784f2da9 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -496,24 +496,6 @@ def configure(env: "Environment"):
if env["execinfo"]:
env.Append(LIBS=["execinfo"])
- if not env.editor_build:
- import subprocess
- import re
-
- linker_version_str = subprocess.check_output(
- [env.subst(env["LINK"]), "-Wl,--version"] + env.subst(env["LINKFLAGS"])
- ).decode("utf-8")
- gnu_ld_version = re.search(r"^GNU ld [^$]*(\d+\.\d+)$", linker_version_str, re.MULTILINE)
- if not gnu_ld_version:
- print(
- "Warning: Creating export template binaries enabled for PCK embedding is currently only supported with GNU ld, not gold, LLD or mold."
- )
- else:
- if float(gnu_ld_version.group(1)) >= 2.30:
- env.Append(LINKFLAGS=["-T", "platform/linuxbsd/pck_embed.ld"])
- else:
- env.Append(LINKFLAGS=["-T", "platform/linuxbsd/pck_embed.legacy.ld"])
-
if platform.system() == "FreeBSD":
env.Append(LINKFLAGS=["-lkvm"])