dynamic library building and loading

Jacob Carlborg doob at me.com
Mon Oct 1 10:16:33 PDT 2012


On 2012-10-01 17:03, Johannes Pfau wrote:

> I tested two different configurations:
>
> druntime and phobos are shared libraries as well (this is the correct
> solution, it's mostly working except for the GC issues)

I agree.

> druntime and phobos static linking: phobos and druntime are statically
> linked into the app, libdso.so is not linked against druntime/phobos at
> all. (this is a hack to get better test results: With a shared
> druntime, you can't call GC.collect twice, because the first call
> frees important objects in druntime and then the second call segfaults)

Ok.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list