diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2019-12-13 05:34:59 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2019-12-13 05:34:59 +0000 |
commit | 5fba554d35319484403c2517e7d9aff4e83e3f37 (patch) | |
tree | 95a509dbfdf5f2172dc87332e422286863222c16 /lang/intel-compute-runtime/files/patch-rtld | |
parent | Update finance/libofx to 0.9.15 (diff) |
lang/compute-runtime: prefix package like other distributions
Compute runtime unlike Beignet maybe used by other CPU vendors for
a common runtime used by GPGPU.
Notes
Notes:
svn path=/head/; revision=519964
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-rtld')
-rw-r--r-- | lang/intel-compute-runtime/files/patch-rtld | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/intel-compute-runtime/files/patch-rtld b/lang/intel-compute-runtime/files/patch-rtld new file mode 100644 index 000000000000..661fdbc12333 --- /dev/null +++ b/lang/intel-compute-runtime/files/patch-rtld @@ -0,0 +1,18 @@ +RTLD_DEEPBIND isn't available on non-Linux + +core/os_interface/linux/os_library_linux.cpp: In constructor 'NEO::Linux::OsLibrary::OsLibrary(const string&)': +core/os_interface/linux/os_library_linux.cpp:35:49: error: 'RTLD_DEEPBIND' was not declared in this scope + 35 | constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND; + | ^~~~~~~~~~~~~ + +--- core/os_interface/linux/os_library_linux.cpp.orig 2019-11-29 14:23:34 UTC ++++ core/os_interface/linux/os_library_linux.cpp +@@ -29,7 +29,7 @@ OsLibrary::OsLibrary(const std::string &name) { + if (name.empty()) { + this->handle = dlopen(0, RTLD_LAZY); + } else { +-#ifdef SANITIZER_BUILD ++#if defined(SANITIZER_BUILD) || !defined(__linux__) + constexpr auto dlopenFlag = RTLD_LAZY; + #else + constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND; |