summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/CMakeLists.txt10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt
index 233e75d6e2a..0b8b6ae1226 100644
--- a/src/vppinfra/CMakeLists.txt
+++ b/src/vppinfra/CMakeLists.txt
@@ -16,15 +16,7 @@ enable_language(ASM)
##############################################################################
# find libdl
##############################################################################
-vpp_find_path(LIBDL_INCLUDE_DIR dlfcn.h)
-vpp_find_library(LIBDL_LIB NAMES dl)
-
-if (LIBDL_INCLUDE_DIR AND LIBDL_LIB)
- message(STATUS "libdl found at ${LIBDL_LIB}")
- list(APPEND VPPINFRA_LIBS ${LIBDL_LIB})
-else()
- message(FATAL_ERROR "libdl not found")
-endif()
+list(APPEND VPPINFRA_LIBS ${CMAKE_DL_LIBS})
##############################################################################
# find libunwind