Linking D Runtime
sarn at theartofmachinery.com
Tue Sep 3 07:51:02 UTC 2019
On Saturday, 24 August 2019 at 02:10:19 UTC, Jonathan Levi wrote:
> I would love a more portable solution though. This should work
> for now.
How are you building the D code? It should be possible to build
a library (with -lib and/or -shared) that statically includes the
runtime and Phobos.
If you want to dynamically link the standard libraries, then you
shouldn't need to specify the full path (just "phobos2" and
"druntime") as long as they're installed in one of the system's
library search paths (see /etc/ld.so.conf on GNU/Linux).
More information about the Digitalmars-d-learn