From f3a2f62edd79deedff5e6ffaa1d2d7a9f3ac5d11 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 12 Aug 2019 18:21:44 +0200 Subject: fix benchmarks for any glibc version use the included loader of the build glibc instead of LD_LIBRARY_PATH. Using LD_LIBRARY_PATH probably fails because of incompatible system loaders and newer glibc versions. Then we have to reverse the positions of {measure cmd} and {cmd prefix} in the exec chain because ld loads only ELF binaries and {measure cmd} could be a script. --- src/allocators/glibc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/allocators/glibc.py') diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py index 3842877..b9f0a9e 100644 --- a/src/allocators/glibc.py +++ b/src/allocators/glibc.py @@ -25,10 +25,10 @@ class Glibc (Allocator): "cd glibc-build; make", "cd glibc-build; make install"] - # kwargs["cmd_prefix"] = ("{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" - # + library_path) + kwargs["cmd_prefix"] = ("{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" + + library_path) - kwargs["LD_LIBRARY_PATH"] = "{dir}/lib:" + library_path + # kwargs["LD_LIBRARY_PATH"] = "{dir}/lib:" + library_path super().__init__(name, **kwargs) -- cgit v1.2.3