[Cmake-commits] [cmake-commits] king committed Linux-XL-C.cmake 1.3 1.4 Linux-XL-CXX.cmake 1.3 1.4 Linux-XL-Fortran.cmake 1.3 1.4 Linux.cmake 1.22 1.23

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Dec 4 10:22:32 EST 2009


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv25060/Modules/Platform

Modified Files:
	Linux-XL-C.cmake Linux-XL-CXX.cmake Linux-XL-Fortran.cmake 
	Linux.cmake 
Log Message:
Remove GNU-specific flags from Linux.cmake

We remove the shared library compile/link flags "-fPIC" and "-shared"
because they are not provided by all compilers on Linux.  This allows us
to drop code from the Linux-XL-*.cmake files that erases the bad flags.
All other supported compilers already provide their correct flags for
Linux in their own platform information files.


Index: Linux-XL-C.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-XL-C.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-XL-C.cmake	1 Dec 2009 19:25:21 -0000	1.3
--- Linux-XL-C.cmake	4 Dec 2009 15:22:24 -0000	1.4
***************
*** 1,2 ****
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
--- 1 ----

Index: Linux.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux.cmake,v
retrieving revision 1.22
retrieving revision 1.23
diff -C 2 -d -r1.22 -r1.23
*** Linux.cmake	2 Dec 2009 20:17:53 -0000	1.22
--- Linux.cmake	4 Dec 2009 15:22:30 -0000	1.23
***************
*** 1,6 ****
- # GCC is the default compiler on Linux.
  SET(CMAKE_DL_LIBS "dl")
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")        
- SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
--- 1,3 ----

Index: Linux-XL-Fortran.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-XL-Fortran.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-XL-Fortran.cmake	1 Dec 2009 19:25:21 -0000	1.3
--- Linux-XL-Fortran.cmake	4 Dec 2009 15:22:27 -0000	1.4
***************
*** 1,2 ****
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj")
--- 1 ----

Index: Linux-XL-CXX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-XL-CXX.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-XL-CXX.cmake	1 Dec 2009 19:25:21 -0000	1.3
--- Linux-XL-CXX.cmake	4 Dec 2009 15:22:25 -0000	1.4
***************
*** 1,3 ****
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
- SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
  SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj")
--- 1 ----



More information about the Cmake-commits mailing list