1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/intel-compute-runtime/remove-rtld-deepbind.patch
Dennis Krupenik 41a63b1a96 testing/intel-compute-runtime: new aport
Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver
https://github.com/intel/compute-runtime
2020-08-31 01:13:34 +00:00

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);
}
}