mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver https://github.com/intel/compute-runtime
19 lines
630 B
Diff
19 lines
630 B
Diff
RTLD_DEEPBIND is a glibc thing
|
|
---
|
|
--- a/shared/source/os_interface/linux/os_library_linux.cpp
|
|
+++ b/shared/source/os_interface/linux/os_library_linux.cpp
|
|
@@ -29,13 +29,7 @@
|
|
if (name.empty()) {
|
|
this->handle = dlopen(0, RTLD_LAZY);
|
|
} else {
|
|
-#ifdef SANITIZER_BUILD
|
|
- constexpr auto dlopenFlag = RTLD_LAZY;
|
|
-#else
|
|
- constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;
|
|
- /* Background: https://github.com/intel/compute-runtime/issues/122 */
|
|
-#endif
|
|
- this->handle = dlopen(name.c_str(), dlopenFlag);
|
|
+ this->handle = dlopen(name.c_str(), RTLD_LAZY | RTLD_GLOBAL);
|
|
}
|
|
}
|
|
|