void-packages/srcpkgs/tbb/patches/rtld_deepbind.patch
2022-01-28 03:27:23 -03:00

14 lines
576 B
Diff

# https://github.com/oneapi-src/oneTBB/pull/684/commits/453a9c555d3fae5df3b42d98621b17d401d622f0
diff --git a/src/tbb/dynamic_link.cpp b/src/tbb/dynamic_link.cpp
index 3f1342503..5330d7107 100644
--- a/src/tbb/dynamic_link.cpp
+++ b/src/tbb/dynamic_link.cpp
@@ -413,7 +413,7 @@ namespace r1 {
int flags = RTLD_NOW;
if (local_binding) {
flags = flags | RTLD_LOCAL;
-#if __linux__ && !__ANDROID__ && !__TBB_USE_SANITIZERS
+#if (__linux__ && __GLIBC__) && !__TBB_USE_SANITIZERS
flags = flags | RTLD_DEEPBIND;
#endif
} else {