From 7752d6d5b9b67987d4631cca4ce192069697a4e2 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Thu, 16 Aug 2012 00:13:26 -0300 Subject: Do not pass -lc to the compiler on BSD systems. It is not completely clear why this flag was being specified in the first place: it was added in the commit that created FindKDE4.cmake (KDE SVN r497283), and seems to have been ported automatically from the autotools code. In autotools, its origins can be tracked back to KDE SVN r141814, which was a libtool update. In that case, -lc was only passed on AIX systems anyway. --- kde-modules/KDECompilerSettings.cmake | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index bb50c681..1b38a1f4 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -238,13 +238,6 @@ if (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU) endif (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU) - -if (CMAKE_SYSTEM_NAME MATCHES BSD) - set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lc") - set ( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -lc") -endif (CMAKE_SYSTEM_NAME MATCHES BSD) - - ############################################################ # compiler specific settings ############################################################ -- cgit v1.2.1