It’s ok to dlopen a lib twice. You can dlopen either your plugin or libjulia.so with RTLD_GLOBAL from your plugin. This will lift it into the so namespace that julia wants. I used to have a shim library, but now I just do this.
2 Likes