MFH: r552511
lang/intel-compute-runtime: use RTLD_DEEPBIND on FreeBSD >= 12.2 https://svnweb.freebsd.org/changeset/base/361380 https://github.com/intel/compute-runtime/issues/122 Approved by: ports-secteam blanket (reliability fix)
This commit is contained in:
parent
b1c9d40132
commit
8025600add
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=552512
@ -12,7 +12,7 @@ core/os_interface/linux/os_library_linux.cpp:35:49: error: 'RTLD_DEEPBIND' was n
|
||||
this->handle = dlopen(0, RTLD_LAZY);
|
||||
} else {
|
||||
-#ifdef SANITIZER_BUILD
|
||||
+#if defined(SANITIZER_BUILD) || !defined(__linux__)
|
||||
+#if defined(SANITIZER_BUILD) || !defined(RTLD_DEEPBIND)
|
||||
constexpr auto dlopenFlag = RTLD_LAZY;
|
||||
#else
|
||||
constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;
|
||||
|
Loading…
Reference in New Issue
Block a user