summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 14:37:44 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 14:37:44 +0000
commitc72478ce90d83e355ad7782991d20cbbd2664fd3 (patch)
treeda172589b72c9d2c5b1d2311d50b7a60d55585b5 /src/plugin.c
parent8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e (diff)
downloadlibrcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.gz
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.bz2
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.xz
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.zip
FreeBSD fixes
- Autoconf: try to locate libraries in /usr/local - Autoconf: Help FreeBSD to locate BerkeleyDB - Autoconf: Search for dlopen in libc library - Autoconf: Support of --disable-bdb option is added to configure script - Fixed compilation with missing dlopen functionality - Suppress various warnings
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c4
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);