[PATCH 15/90] Enable test_dlopen only if DLFCN is available
authorMichal Babej <michal.babej@tuni.fi>
Wed, 8 Sep 2021 15:17:03 +0000 (18:17 +0300)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Gbp-Pq: Name 0015-Enable-test_dlopen-only-if-DLFCN-is-available.patch

tests/runtime/CMakeLists.txt

index d2b418c27d80aee54fcc30fe645283bccb6eb8fe..cf3c744822fd01e8e2e5a3f25ce0aad1c8fc2a9f 100644 (file)
@@ -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})