Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: Reilly Brogan <reilly@reillybrogan.com>
- Date: Mon, 4 Mar 2024 15:10:18 -0600
- Subject: [PATCH] Solus-only: Instruct ldd to ignore hwcaps libs
- Using a glibc tunable we can tell glibc to essentially ignore all hwcap libs.
- ---
- nuitka/freezer/DllDependenciesPosix.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
- diff --git a/nuitka/freezer/DllDependenciesPosix.py b/nuitka/freezer/DllDependenciesPosix.py
- index 9e27270e8..12e73bc40 100644
- --- a/nuitka/freezer/DllDependenciesPosix.py
- +++ b/nuitka/freezer/DllDependenciesPosix.py
- @@ -79,7 +79,8 @@ def detectBinaryPathDLLsPosix(dll_filename, package_name, original_dir):
- )
- ):
- # TODO: Check exit code, should never fail.
- - stdout, stderr, _exit_code = executeProcess(command=("ldd", dll_filename))
- + with withEnvironmentPathAdded("GLIBC_TUNABLES", "glibc.cpu.hwcaps=-AVX,-AVX2,-AVX512BW,-AVX512DQ,-AVX512F,-AVX512VL,-BMI1,-BMI2,-LZCNT,-MOVBE,-RTM,-SSE4_1,-SSE4_2,-SSSE3"):
- + stdout, stderr, _exit_code = executeProcess(command=("ldd", dll_filename))
- stderr = b"\n".join(
- line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement