SQLite needs to be linked with -ldl on some Linux distros.
authorKahrl <kahrl@gmx.net>
Wed, 14 Sep 2011 23:11:18 +0000 (01:11 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 16 Sep 2011 16:06:45 +0000 (19:06 +0300)
src/CMakeLists.txt

index 9c3b0960adbd7a62b0fd28d88dd6a502d409cfef..c479b4e7392155533198835d39892d573871a2f2 100644 (file)
@@ -74,7 +74,7 @@ else()
                endif(APPLE)
        endif(BUILD_CLIENT)
        find_package(ZLIB REQUIRED)
-       set(PLATFORM_LIBS -lpthread)
+       set(PLATFORM_LIBS -lpthread ${CMAKE_DL_LIBS})
        #set(CLIENT_PLATFORM_LIBS -lXxf86vm)
        # This way Xxf86vm is found on OpenBSD too
        find_library(XXF86VM_LIBRARY Xxf86vm)