diff options
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c index c1f0074..38337fb 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -125,10 +125,10 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { if (!pluginfn) return NULL; sprintf(pluginfn, "%s/.rcc/engines/lib%s.so", rcc_home_dir, name); - res = dlopen(pluginfn, RTLD_NOW); + res = rccLibraryOpen(pluginfn); if (!res) { sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/lib%s.so", name); - res = dlopen(pluginfn, RTLD_NOW); + res = rccLibraryOpen(pluginfn); } free(pluginfn); |