Possible to add rpath
In the standard linux system it has the following convention for shared libs
# Load bundled libraries from the lib/ directory relative to the binary.
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
I tried adding this to the flutter_pi cmake but it didn't work...would this need to be added at the engine level? Or any other ideas for respecting this convention. Would make including shared libs easier than editing ldconfig on each machine (which is working for us for now).
I don't think this would need to be added at the engine level, it should work as you wrote it. But I don't know enough about what you tried exactly to tell you why it didn't work.
In many cases, e.g. when using flutter-pi with Yocto, flutter-pi is actually not bundled with the app at all, so I can't make flutter-pi rely on being bundled with the app (by setting the rpath). But I think this is something that can be improved in the future