Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginLoader.cpp @ 140:a6cfe3d9f752
* Load plugins with RTLD_GLOBAL -- otherwise Vampy plugins will be unable to
load additional modules (for some reason I don't fully understand)
author | cannam |
---|---|
date | Thu, 19 Jun 2008 15:12:41 +0000 |
parents | 761d248f0198 |
children | 7fc1041daa9d |
comparison
equal
deleted
inserted
replaced
139:bb46b8bd213a | 140:a6cfe3d9f752 |
---|---|
515 if (!handle) { | 515 if (!handle) { |
516 cerr << "Vamp::HostExt::PluginLoader: Unable to load library \"" | 516 cerr << "Vamp::HostExt::PluginLoader: Unable to load library \"" |
517 << path << "\"" << endl; | 517 << path << "\"" << endl; |
518 } | 518 } |
519 #else | 519 #else |
520 handle = dlopen(path.c_str(), RTLD_LAZY); | 520 handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL); |
521 if (!handle) { | 521 if (!handle) { |
522 cerr << "Vamp::HostExt::PluginLoader: Unable to load library \"" | 522 cerr << "Vamp::HostExt::PluginLoader: Unable to load library \"" |
523 << path << "\": " << dlerror() << endl; | 523 << path << "\": " << dlerror() << endl; |
524 } | 524 } |
525 #endif | 525 #endif |