From 55dd7e975dac71111583ee7c69798addd5cda850 Mon Sep 17 00:00:00 2001 From: Michal Babej Date: Wed, 8 Sep 2021 18:17:03 +0300 Subject: [PATCH] [PATCH 15/90] Enable test_dlopen only if DLFCN is available Gbp-Pq: Name 0015-Enable-test_dlopen-only-if-DLFCN-is-available.patch --- tests/runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- 2.30.2