From: Michal Babej Date: Wed, 8 Sep 2021 15:17:03 +0000 (+0300) Subject: [PATCH 15/90] Enable test_dlopen only if DLFCN is available X-Git-Tag: archive/raspbian/1.8-3+rpi1^2~85 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55dd7e975dac71111583ee7c69798addd5cda850;p=pocl.git [PATCH 15/90] Enable test_dlopen only if DLFCN is available Gbp-Pq: Name 0015-Enable-test_dlopen-only-if-DLFCN-is-available.patch --- diff --git a/tests/runtime/CMakeLists.txt b/tests/runtime/CMakeLists.txt index d2b418c..cf3c744 100644 --- a/tests/runtime/CMakeLists.txt +++ b/tests/runtime/CMakeLists.txt @@ -24,7 +24,7 @@ #============================================================================= # do not link test_dlopen with -lOpenCL -if (UNIX) +if (UNIX AND HAVE_DLFCN_H) add_executable("test_dlopen" "test_dlopen.c") if(SANITIZER_OPTIONS) target_link_libraries("test_dlopen" ${SANITIZER_LIBS})