February 07, 2014
On Tuesday, 4 February 2014 at 16:17:30 UTC, Russel Winder wrote:
> On Tue, 2014-02-04 at 12:45 +0000, Artem Tarasov wrote:
>
> But it does lead to a working system :-)

Any particular reason you aren't using CeleriD to build this shared lib? CeleriD uses some hooks to call rt_init when the library loads.

https://bitbucket.org/ariovistus/pyd/src/92b9962b429ed33afa7048cf1923fd76d0fe8977/infrastructure/d/?at=default

see so_ctor.c and python_so_linux_boilerplate.d

Also, note however you do it, if you have multiple shared libs, don't call initialize/term more than once. segfaults happen.
1 2 3
Next ›   Last »