[LAD] A question to plugin host devs

Hermann Meyer brummer- at web.de
Sun Dec 20 18:19:31 CET 2020

Am 20.12.20 um 17:59 schrieb Fons Adriaensen:
> Hello all,
> I wonder what are the pros and cons of using RTLD_NODELETE as
> a flag to dlopen() and call dlclose () as soon as the required
> symbols are loaded.
> The alternative is to leave all shared object handles open until
> the host terminates.
> What are you doing in your plugin host (and why) ?
> TIA,

In guitarix we use RTLD_LOCAL|RTLD_NOW and we only call dlclose () when
the plug isn't compatible with our host, or when the host shut down.

RTLD_NODELETE may have a benefit when you load/unload/load/unload/ . .
.  a plugin library,

More information about the Linux-audio-dev mailing list