changeset 1416:037d5ffca74d

as needed for plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jun 2015 09:04:14 +0200
parents 728c22ade2e2
children 8e23f16a198d
files Resources/CMake/Compiler.cmake
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/Compiler.cmake	Wed Jun 03 21:30:25 2015 +0200
+++ b/Resources/CMake/Compiler.cmake	Thu Jun 04 09:04:14 2015 +0200
@@ -59,6 +59,8 @@
 
   if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
+    set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed")
+    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")
     add_definitions(
       -D_LARGEFILE64_SOURCE=1 
       -D_FILE_OFFSET_BITS=64