We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28ca6b commit 482e6eeCopy full SHA for 482e6ee
binding/Binding.Shared/LibraryLoader.cs
@@ -202,16 +202,17 @@ private static class Linux
202
203
private const int RTLD_LAZY = 1;
204
private const int RTLD_NOW = 2;
205
+ private const int RTLD_DEEPBIND = 8;
206
207
private static bool UseSystemLibrary2 = true;
208
209
public static IntPtr dlopen (string path, bool lazy = true)
210
{
211
try {
- return dlopen2 (path, lazy ? RTLD_LAZY : RTLD_NOW);
212
+ return dlopen2 (path, (lazy ? RTLD_LAZY : RTLD_NOW) | RTLD_DEEPBIND);
213
} catch (DllNotFoundException) {
214
UseSystemLibrary2 = false;
- return dlopen1 (path, lazy ? RTLD_LAZY : RTLD_NOW);
215
+ return dlopen1 (path, (lazy ? RTLD_LAZY : RTLD_NOW) | RTLD_DEEPBIND);
216
}
217
218
0 commit comments