Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update pynetinit.c
  • Loading branch information
filmor authored May 11, 2020
commit a3c29cde8c277ace25d18b9ba5be874948cd6efc
6 changes: 5 additions & 1 deletion src/monoclr/pynetinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ PyNet_Args *PyNet_Init(int ext)
pn_args->module = NULL;

#ifdef __linux__
// Force preload libmono-2.0 as global
// Force preload libmono-2.0 as global. Without this, on some systems
// symbols from libmono are not found by libmononative (which implements
// some of the System.* namespaces). Since the only happened on Linux so
// far, we hardcode the library name, load the symbols into the global
// namespace and leak the handle.
dlopen("libmono-2.0.so", RTLD_LAZY | RTLD_GLOBAL);
#endif

Expand Down