From af17a02c292875e97b30943a5557b96de6578e75 Mon Sep 17 00:00:00 2001 From: Junru Shao Date: Wed, 3 Apr 2019 17:02:36 -0700 Subject: [PATCH] fix undefined reference to dlopen, etc (#2957) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 862704caca01..4b022165c8a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ include_directories("3rdparty/compiler-rt") # initial variables set(TVM_LINKER_LIBS "") -set(TVM_RUNTIME_LINKER_LIBS "") +set(TVM_RUNTIME_LINKER_LIBS ${CMAKE_DL_LIBS}) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Generic compilation options