[Cmake-commits] [cmake-commits] king committed SunPro-C.cmake 1.2 1.3 SunPro-CXX.cmake 1.2 1.3 SunPro-Fortran.cmake 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 1 14:25:23 EST 2009


Update of /cvsroot/CMake/CMake/Modules/Compiler
In directory public:/mounts/ram/cvs-serv28291/Modules/Compiler

Modified Files:
	SunPro-C.cmake SunPro-CXX.cmake SunPro-Fortran.cmake 
Log Message:
Drop -rdynamic from Linux build rules

This is a GNU-specific option that should not be specified for all
compilers on Linux.  It tells the GNU compiler to pass -export-dynamic
to the linker to export symbols from executables for use by plugins.
Since we provide the ENABLE_EXPORTS target property to do the same thing
in a cross-platform way, there is no need to pass -rdynamic always.

Since the option is not useful for GNU tools and breaks other tools on
Linux we simply remove it from CMAKE_SHARED_LIBRARY_LINK_<lang>_FLAGS.
This also allows us to stop setting the variable in other Linux compiler
files just to erase the bad flag.

See issue #9985.


Index: SunPro-CXX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Compiler/SunPro-CXX.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** SunPro-CXX.cmake	21 Aug 2009 14:32:25 -0000	1.2
--- SunPro-CXX.cmake	1 Dec 2009 19:25:20 -0000	1.3
***************
*** 1,5 ****
  SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
  SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
- SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
--- 1,4 ----

Index: SunPro-Fortran.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Compiler/SunPro-Fortran.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** SunPro-Fortran.cmake	21 Aug 2009 14:32:25 -0000	1.2
--- SunPro-Fortran.cmake	1 Dec 2009 19:25:20 -0000	1.3
***************
*** 1,5 ****
  SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
  SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
- SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
--- 1,4 ----

Index: SunPro-C.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Compiler/SunPro-C.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** SunPro-C.cmake	21 Aug 2009 14:32:25 -0000	1.2
--- SunPro-C.cmake	1 Dec 2009 19:25:20 -0000	1.3
***************
*** 1,5 ****
  SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC")
  SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
- SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-R")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
--- 1,4 ----



More information about the Cmake-commits mailing list