summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-SunPro-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-13 14:40:15 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-13 14:40:15 (GMT)
commit82c081ba356e735b89610f8d2fa9c0eabe66c08f (patch)
treeb8a95869aa2d0456a5fa88c62ce9a2db8c232659 /Modules/Platform/Linux-SunPro-CXX.cmake
parent61367c69d7168a1ffcf39266cdb0784200e57e94 (diff)
downloadCMake-82c081ba356e735b89610f8d2fa9c0eabe66c08f.zip
CMake-82c081ba356e735b89610f8d2fa9c0eabe66c08f.tar.gz
CMake-82c081ba356e735b89610f8d2fa9c0eabe66c08f.tar.bz2
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.
Diffstat (limited to 'Modules/Platform/Linux-SunPro-CXX.cmake')
-rw-r--r--Modules/Platform/Linux-SunPro-CXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-SunPro-CXX.cmake b/Modules/Platform/Linux-SunPro-CXX.cmake
index ddc10bd..2f3d86a 100644
--- a/Modules/Platform/Linux-SunPro-CXX.cmake
+++ b/Modules/Platform/Linux-SunPro-CXX.cmake
@@ -5,6 +5,7 @@ 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 ":")
+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")