Does runtimePREFIX could replace the origin option?
No. Besides that, I think runtimePREFIX will not be needed soon as we
use $ORIGIN now.
Let's not confuse linking stage (at compilation) and running (when
libraries are being found also). If $ORIGIN only affects running. For
compilation, you have to: add the necessary libs to LIBS and also add
their dirs to LIBPATH.
For running, I remember vaguely that -z origin wasn't necessary,
even if
the libs had -rpath=\$ORIGIN/.. etc in their paths. You can verify
after
the build that running ldd on a plugin will find all libs
automatically,
without setting LD_LIBRARY_PATH. If it doesn't, set LD_LIBRARY_PATH to
all lib directories (colon-separated) and run yade.