From 9b23d9acec9aa88f1d810a40816b83b8d94df44b Mon Sep 17 00:00:00 2001 From: "Matteo F. Vescovi" Date: Mon, 26 May 2014 09:37:54 +0200 Subject: Fix compilation error non non-linux architectures --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2962b58824d..738518235d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -915,6 +915,9 @@ if(UNIX AND NOT APPLE) endif() set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -pthread") + if(CMAKE_DL_LIBS) + list(APPEND PLATFORM_LINKLIBS ${CMAKE_DL_LIBS}) + endif() # lfs on glibc, all compilers should use add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE) -- cgit v1.2.3