aports/community/libtbb/fix-dynload.patch
psykose 3325ced5b2 community/libtbb: upgrade to 2021.5.0
enable tests
enable python module
remove musl.patch as musl does not define __GLIBC_PREREQ, so this
was redundant
2022-03-01 13:17:05 +01:00

14 lines
416 B
Diff

RTLD_DEEPBIND is a glibc definition
--- a/src/tbb/dynamic_link.cpp
+++ b/src/tbb/dynamic_link.cpp
@@ -413,7 +413,7 @@
int flags = RTLD_NOW;
if (local_binding) {
flags = flags | RTLD_LOCAL;
-#if __linux__ && !__ANDROID__ && !__TBB_USE_SANITIZERS
+#if __linux__ && __GLIBC__ && !__ANDROID__ && !__TBB_USE_SANITIZERS
flags = flags | RTLD_DEEPBIND;
#endif
} else {