aports/unmaintained/intel-compute-runtime/remove-rtld-deepbind.patch
psykose 1ec88109e2
unmaintained/intel-compute-runtime: move from testing
does not build, not installable for 6 months, not updated for a year

see: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35445
2022-08-01 03:25:20 +02:00

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