www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - LDC runtime libraries distribution model

reply Ivan Butygin <ivan.butygin gmail.com> writes:
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).
Jan 15 2018
parent Guillaume Piolat <notthat email.com> writes:
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.
Jan 17 2018