]> source.dussan.org Git - rspamd.git/commitdiff
Do not link unneeded libraries if possible.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Dec 2013 18:12:05 +0000 (18:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Dec 2013 18:12:05 +0000 (18:12 +0000)
CMakeLists.txt

index 87002f373add87fcaf69bdccc5ab01c760c10b00..0c59a42b6ca0ba57fd60bb73c79d2d23c3d1379f 100644 (file)
@@ -334,6 +334,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
        ELSE(EXISTS "/etc/debian_version")
                SET(LINUX_START_SCRIPT "rspamd_rh.in")
        ENDIF(EXISTS "/etc/debian_version")
+       SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
 ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
 
 IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")