Changeset: c522da6a920c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c522da6a920c
Modified Files:
        gdk/gdk_posix.c
        monetdb5/mal/mal_linker.c
Branch: default
Log Message:

correctly pass the library name to dlopen/LoadLibrary


diffs (25 lines):

diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -674,8 +674,7 @@ MT_path_absolute(const char *pathname)
 void *
 mdlopen(const char *library, int mode)
 {
-       (void) library;
-       return dlopen(NULL, mode);
+       return dlopen(library, mode);
 }
 
 #else /* WIN32 native */
diff --git a/monetdb5/mal/mal_linker.c b/monetdb5/mal/mal_linker.c
--- a/monetdb5/mal/mal_linker.c
+++ b/monetdb5/mal/mal_linker.c
@@ -103,7 +103,7 @@ getAddress(str fcnname)
         *
         * the first argument must be the same as the base name of the
         * library that is created in src/tools */
-       dl = mdlopen("libmonetdb5", RTLD_NOW | RTLD_GLOBAL);
+       dl = mdlopen(SO_PREFIX "monetdb5" SO_EXT, RTLD_NOW | RTLD_GLOBAL);
        if (dl == NULL) 
                return NULL;
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to