Differential D18757 Diff 55230 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_native__library__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_native__library__posix.cc
--- src/3rdparty/chromium/base/native_library_posix.cc.orig 2017-01-26 00:49:07 UTC | --- src/3rdparty/chromium/base/native_library_posix.cc.orig 2018-11-13 18:25:11 UTC | ||||
+++ src/3rdparty/chromium/base/native_library_posix.cc | +++ src/3rdparty/chromium/base/native_library_posix.cc | ||||
@@ -35,7 +35,7 @@ NativeLibrary LoadNativeLibraryWithOptio | @@ -29,7 +29,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 | // further investigation, as it might vary across versions. Crash here to | ||||
// warn developers that they're trying to rely on uncertain behavior. | // warn developers that they're trying to rely on uncertain behavior. | ||||
CHECK(!options.prefer_own_symbols); | |||||
-#else | |||||
+#elif !defined(OS_BSD) | |||||
if (options.prefer_own_symbols) | |||||
flags |= RTLD_DEEPBIND; | |||||
#endif |