blob: 55bc10cbea09b0301db871ef0dc98d133f2bb11e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$OpenBSD: patch-base_native_library_posix_cc,v 1.7 2021/09/01 16:54:38 robert Exp $
Index: base/native_library_posix.cc
--- base/native_library_posix.cc.orig
+++ base/native_library_posix.cc
@@ -31,7 +31,7 @@ NativeLibrary LoadNativeLibraryWithOptions(const FileP
// http://crbug.com/17943, http://crbug.com/17557, http://crbug.com/36892,
// and http://crbug.com/40794.
int flags = RTLD_LAZY;
-#if defined(OS_ANDROID) || !defined(RTLD_DEEPBIND)
+#if defined(OS_ANDROID) || !defined(RTLD_DEEPBIND) || defined(OS_BSD)
// Certain platforms don't define RTLD_DEEPBIND. Android dlopen() requires
// further investigation, as it might vary across versions. Crash here to
// warn developers that they're trying to rely on uncertain behavior.
|