summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2010-03-22 22:00:15 +0100
committerPino Toscano <pino@kde.org>2010-03-22 22:00:15 +0100
commita07ef8f703ab896f89ed211a5780e4a669b04fc7 (patch)
tree74ce1a2f3ce7d54fd4df23da44bf09c026d57068 /cmake
parent86debcc9bba28a7c86f01ca9e63bde5fcd541846 (diff)
[CMake] revert addition of "-Wl,--no-add-needed" to the link flags, if available
for now it is safer without it
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/PopplerMacros.cmake6
1 files changed, 0 insertions, 6 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake
index fad51529..befd20ae 100644
--- a/cmake/modules/PopplerMacros.cmake
+++ b/cmake/modules/PopplerMacros.cmake
@@ -127,12 +127,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
endif(GCC_HAS_AS_NEEDED)
- poppler_check_link_flag("-Wl,--no-add-needed" GCC_HAS_NO_ADD_NEEDED)
- if(GCC_HAS_NO_ADD_NEEDED)
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-add-needed")
- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-add-needed")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-add-needed")
- endif(GCC_HAS_NO_ADD_NEEDED)
endif (CMAKE_COMPILER_IS_GNUCXX)
if(CMAKE_C_COMPILER MATCHES "icc")