--- src/CMakeLists.txt.orig	2015-05-07 13:21:22 UTC
+++ src/CMakeLists.txt
@@ -86,7 +86,7 @@ if (UNIX)
 	if (APPLE)
 		set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
 	else (APPLE)
-		set (MOSQ_LIBS ${MOSQ_LIBS} rt dl m)
+		set (MOSQ_LIBS ${MOSQ_LIBS} rt m)
 	endif (APPLE)
 endif (UNIX)
 
@@ -127,6 +127,5 @@ if (${WITH_TLS} STREQUAL ON)
 endif (${WITH_TLS} STREQUAL ON)
 
 if (UNIX)
-	install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
 endif (UNIX)
 
