Merge pull request #2434 from pyhalov/php
[unleashed-userland.git] / components / developer / cmake / patches / use-gxx-to-link.patch
blob51c21cf57701b02c8a83e449cbc54fa0042a9b80
1 https://cmake.org/Bug/view.php?id=15673
2 https://cmake.org/gitweb?p=cmake.git;a=patch;h=60fe4b54
4 From 60fe4b540b40330e050dbd755204cecbc62d6a37 Mon Sep 17 00:00:00 2001
5 From: Brad King <brad.king@kitware.com>
6 Date: Thu, 30 Jul 2015 13:57:22 -0400
7 Subject: [PATCH] SunOS: Drop special case for linking C++ shared libraries
8 with gcc (#15673)
10 Since commit v2.4.0~4325 (...use gcc -shared, even for C++ libraries,
11 2003-03-13) we use the C compiler "gcc" to link C++ shared libraries
12 compiled with "g++". At the time "g++" did not know how to link shared
13 libraries correctly. This has long since been fixed so simply drop the
14 special case.
15 ---
16 Modules/Platform/SunOS.cmake | 8 --------
17 1 file changed, 8 deletions(-)
19 diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
20 index aaa79c4..77946f2 100644
21 --- a/Modules/Platform/SunOS.cmake
22 +++ b/Modules/Platform/SunOS.cmake
23 @@ -7,14 +7,6 @@ if(CMAKE_SYSTEM MATCHES "SunOS-4")
24 set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
25 endif()
27 -if(CMAKE_COMPILER_IS_GNUCXX)
28 - if(CMAKE_COMPILER_IS_GNUCC)
29 - set(CMAKE_CXX_CREATE_SHARED_LIBRARY
30 - "<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>")
31 - else()
32 - # Take default rule from CMakeDefaultMakeRuleVariables.cmake.
33 - endif()
34 -endif()
35 include(Platform/UnixPaths)
37 # Add the compiler's implicit link directories.
38 --
39 1.7.10.4