added onetbb
This commit is contained in:
parent
dac0e1a5e5
commit
c08e70d5c1
3 changed files with 88 additions and 0 deletions
14
pkgs/tbb/musl-rtld.patch
Normal file
14
pkgs/tbb/musl-rtld.patch
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue