summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-30 17:57:22 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-30 17:59:29 (GMT)
commit60fe4b540b40330e050dbd755204cecbc62d6a37 (patch)
tree22d4c73dc18d14d07af75d2b6eb5a926b8f96425 /Modules/Platform
parenta8c3698526cfa11c61d9dfd8c0f9fa8d2c7ff10a (diff)
downloadCMake-60fe4b540b40330e050dbd755204cecbc62d6a37.zip
CMake-60fe4b540b40330e050dbd755204cecbc62d6a37.tar.gz
CMake-60fe4b540b40330e050dbd755204cecbc62d6a37.tar.bz2
SunOS: Drop special case for linking C++ shared libraries with gcc (#15673)
Since commit v2.4.0~4325 (...use gcc -shared, even for C++ libraries, 2003-03-13) we use the C compiler "gcc" to link C++ shared libraries compiled with "g++". At the time "g++" did not know how to link shared libraries correctly. This has long since been fixed so simply drop the special case.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/SunOS.cmake8
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index aaa79c4..77946f2 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -7,14 +7,6 @@ if(CMAKE_SYSTEM MATCHES "SunOS-4")
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
endif()
-if(CMAKE_COMPILER_IS_GNUCXX)
- if(CMAKE_COMPILER_IS_GNUCC)
- set(CMAKE_CXX_CREATE_SHARED_LIBRARY
- "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <SONAME_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
- else()
- # Take default rule from CMakeDefaultMakeRuleVariables.cmake.
- endif()
-endif()
include(Platform/UnixPaths)
# Add the compiler's implicit link directories.