Skip to content

Commit 4268ee9

Browse files
committed
Change LD_PRELOAD order
Ensure, that already spcified preloads are loaded first.
1 parent 6cdc62e commit 4268ee9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scorep/subsystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def init_environment(scorep_config=[], keep_files=False):
122122
if "LD_PRELOAD" in os.environ:
123123
sys.stderr.write(
124124
"LD_PRELOAD is already specified. If Score-P is already loaded this might lead to errors.")
125-
preload_str = preload_str + " " + os.environ["LD_PRELOAD"]
125+
preload_str = os.environ["LD_PRELOAD"] + " " + preload_str
126126
os.environ["SCOREP_LD_PRELOAD_BACKUP"] = os.environ["LD_PRELOAD"]
127127
else:
128128
os.environ["SCOREP_LD_PRELOAD_BACKUP"] = ""

0 commit comments

Comments
 (0)