summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/IRIX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-31 12:50:40 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-31 12:50:40 (GMT)
commit3a05425309dd19f4c91febdf96b4ac3fc1d17ce5 (patch)
tree4f14c27a2a15110486bb93ade1c50b17154ee977 /Modules/Platform/IRIX.cmake
parent73a5f0846f4946d74bbe7822fdf5458481e03362 (diff)
downloadCMake-3a05425309dd19f4c91febdf96b4ac3fc1d17ce5.zip
CMake-3a05425309dd19f4c91febdf96b4ac3fc1d17ce5.tar.gz
CMake-3a05425309dd19f4c91febdf96b4ac3fc1d17ce5.tar.bz2
BUG: Move decision to switch library paths found in implicit link directories to use -l options from cmFindLibraryCommand to cmComputeLinkInformation. Existing projects may depend on find_library returning a full path. This slightly weakens cmComputeLinkInformation but is necessary for compatibility.
Diffstat (limited to 'Modules/Platform/IRIX.cmake')
-rw-r--r--Modules/Platform/IRIX.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/Platform/IRIX.cmake b/Modules/Platform/IRIX.cmake
index 5452280..b782475 100644
--- a/Modules/Platform/IRIX.cmake
+++ b/Modules/Platform/IRIX.cmake
@@ -31,3 +31,12 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
)
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
+
+# Initialize C link type selection flags. These flags are used when
+# building a shared library, shared module, or executable that links
+# to other libraries to select whether to use the static or shared
+# versions of the libraries.
+FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
+ SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
+ SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
+ENDFOREACH(type)