diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2012-08-16 00:13:26 -0300 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2012-08-16 00:13:26 -0300 |
commit | 7752d6d5b9b67987d4631cca4ce192069697a4e2 (patch) | |
tree | b91e497d3804425b6fec7c9ec23a8c9f7a38f7db | |
parent | ad89c051cfd9483f2cb90ed1a5bf8462ba0fa1a2 (diff) | |
download | extra-cmake-modules-7752d6d5b9b67987d4631cca4ce192069697a4e2.tar.gz extra-cmake-modules-7752d6d5b9b67987d4631cca4ce192069697a4e2.tar.bz2 |
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.
-rw-r--r-- | kde-modules/KDECompilerSettings.cmake | 7 |
1 files changed, 0 insertions, 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 ############################################################ |