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

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jul 13 10:40:23 EDT 2009


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

Modified Files:
	Linux-SunPro-CXX.cmake 
Log Message:
BUG: Fix rpath-link flag for SunPro C++ on Linux

This teaches Modules/Platform/Linux-SunPro-CXX.cmake the -rpath-link flag.  The
SunPro C++ compiler does not have a '-Wl,' option, so we just pass the flag
directly.

This problem was exposed by the ExportImport test now that it links an
executable through the C++ compiler with the -rpath-link flag.


Index: Linux-SunPro-CXX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-SunPro-CXX.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** Linux-SunPro-CXX.cmake	3 May 2007 12:24:32 -0000	1.2
--- Linux-SunPro-CXX.cmake	13 Jul 2009 14:40:15 -0000	1.3
***************
*** 6,9 ****
--- 6,10 ----
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
+ SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG "-rpath-link ")
  SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
  SET(CMAKE_EXE_EXPORTS_CXX_FLAG "--export-dynamic")



More information about the Cmake-commits mailing list