Use RTLD_GLOBAL

This commit is contained in:
Justin Ethier 2017-03-29 00:37:13 +00:00
parent 0369788ab6
commit a019a29471

View file

@ -5633,7 +5633,7 @@ void Cyc_import_shared_object(void *data, object cont, object filename, object e
function_type entry_pt;
Cyc_check_str(data, filename);
Cyc_check_str(data, entry_pt_fnc);
handle = dlopen(string_str(filename), RTLD_LAZY);
handle = dlopen(string_str(filename), RTLD_GLOBAL | RTLD_LAZY);
if (handle == NULL) {
//make_string(s, dlerror());
fprintf(stderr, "%s\n", dlerror());