aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <kde@randomguy3.me.uk>2014-01-28 16:25:18 +0000
committerAlex Merry <kde@randomguy3.me.uk>2014-01-28 17:12:27 +0000
commitcd1bf67b24b751e176c2d53d0b0f449e2ee07872 (patch)
tree5667256b41238afc207f97bb6089d299838cf4f3
parent5e43bbb48163caae5cbae91598b33abd33a4c239 (diff)
downloadextra-cmake-modules-cd1bf67b24b751e176c2d53d0b0f449e2ee07872.tar.gz
extra-cmake-modules-cd1bf67b24b751e176c2d53d0b0f449e2ee07872.tar.bz2
Do not explicitly link against libc
This is entirely unnecessary with any sane toolchain, and should be in the linker flags (rather than the compiler flags) for any system where it is required. REVIEW: 115362
-rw-r--r--kde-modules/KDECompilerSettings.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 3419cb12..ba9b03f1 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -328,13 +328,6 @@ if (APPLE)
set (CMAKE_MODULE_LINKER_FLAGS "-multiply_defined suppress ${CMAKE_MODULE_LINKER_FLAGS}")
endif()
-if (UNIX AND NOT APPLE)
- # We apparently need to explicitly link against libc
- # FIXME: really!?
- set(CMAKE_SHARED_LINKER_FLAGS "-lc ${CMAKE_SHARED_LINKER_FLAGS}")
- set(CMAKE_MODULE_LINKER_FLAGS "-lc ${CMAKE_MODULE_LINKER_FLAGS}")
-endif()
-
if (WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR
(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel"))