January 15, 2018
Applications compiled with LDC can depend on runtime libraries (e.g jit runtime). How they should be distributed on different platforms?
On windows you can just copy runtime dll with exe. Same on osx I think (after patch https://github.com/ldc-developers/ldc/pull/2503).
On linux you have to put runtime so to some system directory (it is possible to have so relative to exe via rpath=$ORIGIN but this is considered unorthodox way).
January 17, 2018
On Monday, 15 January 2018 at 19:34:49 UTC, Ivan Butygin wrote:
> Applications compiled with LDC can depend on runtime libraries (e.g jit runtime). How they should be distributed on different platforms?
> On windows you can just copy runtime dll with exe. Same on osx I think (after patch https://github.com/ldc-developers/ldc/pull/2503).
> On linux you have to put runtime so to some system directory (it is possible to have so relative to exe via rpath=$ORIGIN but this is considered unorthodox way).

It's why static runtime is almost always what you want.