Executables append omnitrace library directory to LD_LIBRARY_PATH (#356)

- omnitrace-run, omnitrace-sample, and omnitrace-causal now automatically append the LD_LIBRARY_PATH with the directory containing the omnitrace libraries
  - this helps ensure that binary rewritten exes can resolve omnitrace-rt library location

[ROCm/rocprofiler-systems commit: 18833a0a5e]
This commit is contained in:
Jonathan R. Madsen
2024-07-02 18:55:37 -05:00
committed by GitHub
parent 8ad58c5d28
commit e0fb6a2335
5 changed files with 56 additions and 24 deletions
@@ -191,6 +191,7 @@ prepare_environment_for_run(parser_data_t& _data)
if(_data.launcher.empty())
{
omnitrace::argparse::add_ld_preload(_data);
omnitrace::argparse::add_ld_library_path(_data);
}
}