summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-15 19:18:34 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-15 19:18:34 (GMT)
commitb2a5495922ede8c6d98342e3c35808a0a7790186 (patch)
tree03cc6d11877c01cd1b7ef194957ba093a8218374 /Modules
parente21b65cbb9ab8937efa18367063486167fa79807 (diff)
downloadCMake-b2a5495922ede8c6d98342e3c35808a0a7790186.zip
CMake-b2a5495922ede8c6d98342e3c35808a0a7790186.tar.gz
CMake-b2a5495922ede8c6d98342e3c35808a0a7790186.tar.bz2
STYLE: Updated comment about link type flags and passing directly to ld.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/HP-UX.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake
index 55e47ab..f7fd3f0 100644
--- a/Modules/Platform/HP-UX.cmake
+++ b/Modules/Platform/HP-UX.cmake
@@ -86,10 +86,11 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
)
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.
+# Initialize C and CXX 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. Note that C modules and shared
+# libs are built using ld directly so we leave off the "-Wl," portion.
FOREACH(type SHARED_LIBRARY SHARED_MODULE)
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-a archive")
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-a default")