From ee7546e4d5dd773d8490dc6f254c828a60a26aec Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 25 Feb 2022 00:39:21 +0100 Subject: [PATCH 08/10] do not export LD_LIBRARY_PATH Patch-Source: https://github.com/chimera-linux/cports/blob/ef79b3bef872aa389cfaaa14b99bb3ab851def2e/main/rust/patches/0010-do-not-export-LD_LIBRARY_PATH.patch (rebased) Signed-off-by: Achill Gilgenast --- src/bootstrap/bootstrap.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 40e08361a0f1..9af808190dff 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -1029,17 +1029,6 @@ class RustBuild(object): del env["CARGO_BUILD_TARGET"] env["CARGO_TARGET_DIR"] = build_dir env["RUSTC"] = self.rustc() - env["LD_LIBRARY_PATH"] = ( - os.path.join(self.bin_root(), "lib") + (os.pathsep + env["LD_LIBRARY_PATH"]) - if "LD_LIBRARY_PATH" in env - else "" - ) - env["DYLD_LIBRARY_PATH"] = ( - os.path.join(self.bin_root(), "lib") - + (os.pathsep + env["DYLD_LIBRARY_PATH"]) - if "DYLD_LIBRARY_PATH" in env - else "" - ) env["LIBRARY_PATH"] = ( os.path.join(self.bin_root(), "lib") + (os.pathsep + env["LIBRARY_PATH"]) if "LIBRARY_PATH" in env -- 2.51.0