dynamic library building and loading
Rob T
rob at ucora.com
Thu Sep 27 17:16:33 PDT 2012
On Thursday, 27 September 2012 at 19:57:13 UTC, Andrei
Alexandrescu wrote:
> So I think in order to enable "true" dynamic loading, I'll need
> to generate PIC for druntime and phobos, and then link
> liblib.so like this:
>
> dmd -fPIC -c lib.d
> gcc -shared lib.o -o liblib.so -L/path/to/phobos -lphobos2
>
> Is that correct?
Yes, that is correct.
The other thing missing is a phobos2.so for dynamic runtime
linking.
-rt
More information about the Digitalmars-d
mailing list