From 291b0b9e655df75286e067b5099f3bd0490d01a2 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 12 Aug 2019 13:38:26 +0200 Subject: add LD_LIBRARY_PATH to system installed allocators --- src/allocators/installed_allocators.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/allocators') diff --git a/src/allocators/installed_allocators.py b/src/allocators/installed_allocators.py index c478f13..6844c4a 100644 --- a/src/allocators/installed_allocators.py +++ b/src/allocators/installed_allocators.py @@ -7,6 +7,7 @@ maybe_allocators = ["tcmalloc", "jemalloc", "hoard"] allocators = {"libc": {"cmd_prefix": "", "binary_suffix": "", "LD_PRELOAD": "", + "LD_LIBRARY_PATH": "", "color": "C1"}} for i, t in enumerate(maybe_allocators): @@ -16,9 +17,10 @@ for i, t in enumerate(maybe_allocators): universal_newlines=True).stdout.strip() if path != "": - allocators[t] = {"cmd_prefix": "", - "binary_suffix": "", - "LD_PRELOAD": path, - "color": "C"+str(i+2)} + allocators[t] = {"cmd_prefix": "", + "binary_suffix": "", + "LD_PRELOAD": path, + "LD_LIBRARY_PATH": "", + "color": "C"+str(i+2)} except: pass -- cgit v1.2.3