added onetbb

This commit is contained in:
Ella-0 2021-06-29 23:30:28 +01:00
parent dac0e1a5e5
commit c08e70d5c1
3 changed files with 88 additions and 0 deletions

14
pkgs/tbb/musl-rtld.patch Normal file
View file

@ -0,0 +1,14 @@
--- a/src/tbb/dynamic_link.cpp
+++ b/src/tbb/dynamic_link.cpp
@@ -413,9 +413,9 @@
int flags = RTLD_NOW;
if (local_binding) {
flags = flags | RTLD_LOCAL;
-#if __linux__ && !__ANDROID__ && !__TBB_USE_ADDRESS_SANITIZER
+#if __linux__ && defined(__GLIBC__) && !__TBB_USE_ADDRESS_SANITIZER
flags = flags | RTLD_DEEPBIND;
-#endif /*__linux__ && !__ANDROID__ && !__TBB_USE_ADDRESS_SANITIZER*/
+#endif /*__linux__ && defined(__GLIBC__) && !__TBB_USE_ADDRESS_SANITIZER*/
} else {
flags = flags | RTLD_GLOBAL;
}