Browse Source

Remove libRack symlink immediately after loading plugin library.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
2a0cb4dc56
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/plugin.cpp

+ 3
- 0
src/plugin.cpp View File

@@ -68,6 +68,9 @@ static void* loadLibrary(std::string libraryPath) {
#elif defined ARCH_MAC
handle = dlopen(libraryPath.c_str(), RTLD_NOW | RTLD_LOCAL);
#endif
if (!settings::devMode) {
system::remove(linkPath);
}
if (!handle)
throw Exception("Failed to load library %s: %s", libraryPath.c_str(), dlerror());
#endif


Loading…
Cancel
Save