From b6c134e1b38b72ff2c81fa47fe7ff195d5238767 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 16 Oct 2020 14:04:24 +0000 Subject: 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 --- lang/intel-compute-runtime/files/patch-rtld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/intel-compute-runtime/files/patch-rtld') diff --git a/lang/intel-compute-runtime/files/patch-rtld b/lang/intel-compute-runtime/files/patch-rtld index 0bf71919aea1..4487fc0b692b 100644 --- a/lang/intel-compute-runtime/files/patch-rtld +++ b/lang/intel-compute-runtime/files/patch-rtld @@ -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; -- cgit v1.2.3