Closed rrnewton closed 5 years ago
there's a another option --library-path
, would --library-path=<dir> --tool <FOO>
work?
Oh, I see there's already some logic here for conditionally appending "lib"/".so":
Yeah, it could become equivalent to do:
systrace --library-path "./lib" --tool "foo.so"
But that undocumented conditional behavior on --tool
is currently somewhat fragile and also doesn't support loading .so's that are not named "libFOO => libFOO.so
) otherwise.
will do. Are you OK with keep both --library-path
and --tool
, instead of specifying path in --tool
?
should be fixed in b40e25c6dc720043e8e5589b445a353ef0c3da59
I really don't like the inflexibility of ONLY being able to load tools named
libXYZ.so
that are in LD_LIBRARY_PATH.If we want to keep both abilities, it seems like a simple trigger is if "/" is contained in the argument to
--tool
, then it refers to an absolute or relative path: