0009-do-not-export-LD_LIBRARY_PATH.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. From 5e9e5fa2b2aefefbdc00547d7f10ee92d9b3356a Mon Sep 17 00:00:00 2001
  2. From: Daniel Kolesa <daniel@octaforge.org>
  3. Date: Tue, 21 Dec 2021 00:48:29 +0100
  4. Subject: [PATCH 09/15] do not export LD_LIBRARY_PATH
  5. ---
  6. src/bootstrap/bootstrap.py | 6 ------
  7. 1 file changed, 6 deletions(-)
  8. diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
  9. index 40d478a17..3501fd901 100644
  10. --- a/src/bootstrap/bootstrap.py
  11. +++ b/src/bootstrap/bootstrap.py
  12. @@ -756,12 +756,6 @@ class RustBuild(object):
  13. del env["CARGO_BUILD_TARGET"]
  14. env["CARGO_TARGET_DIR"] = build_dir
  15. env["RUSTC"] = self.rustc()
  16. - env["LD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
  17. - (os.pathsep + env["LD_LIBRARY_PATH"]) \
  18. - if "LD_LIBRARY_PATH" in env else ""
  19. - env["DYLD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
  20. - (os.pathsep + env["DYLD_LIBRARY_PATH"]) \
  21. - if "DYLD_LIBRARY_PATH" in env else ""
  22. env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
  23. (os.pathsep + env["LIBRARY_PATH"]) \
  24. if "LIBRARY_PATH" in env else ""
  25. --
  26. 2.37.2