summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-15 19:14:55 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-15 19:14:55 (GMT)
commite21b65cbb9ab8937efa18367063486167fa79807 (patch)
tree6d7d196986d2066d77397bc9dc6ed7d81c912b95 /Modules
parent5845843156e10d8e0f61b3b042a707b146fbf93a (diff)
downloadCMake-e21b65cbb9ab8937efa18367063486167fa79807.zip
CMake-e21b65cbb9ab8937efa18367063486167fa79807.tar.gz
CMake-e21b65cbb9ab8937efa18367063486167fa79807.tar.bz2
BUG: Fix CMAKE_SHARED_*_LINK_*_C_FLAGS to pass link type selection flags directly to the linker.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/HP-UX.cmake11
1 files changed, 10 insertions, 1 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake
index 62359c6..55e47ab 100644
--- a/Modules/Platform/HP-UX.cmake
+++ b/Modules/Platform/HP-UX.cmake
@@ -90,7 +90,16 @@ ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
# 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)
+FOREACH(type SHARED_LIBRARY SHARED_MODULE)
+ SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-a archive")
+ SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-a default")
+ENDFOREACH(type)
+FOREACH(type EXE)
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-a,archive")
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-a,default")
ENDFOREACH(type)
+FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
+ SET(CMAKE_${type}_LINK_STATIC_CXX_FLAGS "-Wl,-a,archive")
+ SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Wl,-a,default")
+ENDFOREACH(type)
+