From cb9c07785003e9a92e6fbe8fd1afd6daf42ea1f0 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 7 Oct 2017 15:50:56 -0700 Subject: [PATCH] Add support for dladdr in CMake build This links against CMAKE_DL_LIBS, reflecting the recent change 73f2992a2. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc9ab5113..e4628bc78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ ENDFUNCTION(FISH_LINK_DEPS) ADD_LIBRARY(fishlib STATIC ${FISH_SRCS}) TARGET_SOURCES(fishlib PRIVATE ${FISH_HEADERS}) TARGET_LINK_LIBRARIES(fishlib - ${CURSES_LIBRARIES} Threads::Threads + ${CURSES_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS} ${PCRE2_LIB} muparser) # builtin_math.cpp needs to see muParser's built header.