boostorg / dll

Library for comfortable work with DLL and DSO
https://boost.org/libs/dll
52 stars 43 forks source link

Add RTLD_NODELETE on boost::dll::load_mode #74

Open tgmatos opened 2 weeks ago

tgmatos commented 2 weeks ago

RTLD_NODELETE (since glibc 2.2) Do not unload the library during dlclose(). Consequently, the library's static variables are not reinitialized if the library is reloaded with dlopen() at a later time. This flag is not specified in POSIX.1-2001.

RTLD_NODELETE is available on Linux and BSD systems.