Skip to content

Commit

Permalink
Load shared objects with the correct extension on Mac
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18221 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 22, 2013
1 parent 0ae6f3d commit 37dfa1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/systemimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ int SystemImpl__loadLibrary(const char *str, int printDebug)
void *h = NULL;
mmc_GC_function_set_gc_state mmc_GC_set_state_lib_function = NULL;
const char* ctokens[2];
snprintf(libname, MAXPATHLEN, "./%s.so", str);
snprintf(libname, MAXPATHLEN, "./%s" CONFIG_DLL_EXT, str);
h = dlopen(libname, RTLD_LOCAL | RTLD_NOW);
if (h == NULL) {
ctokens[0] = dlerror();
Expand Down

0 comments on commit 37dfa1d

Please sign in to comment.