summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/HP-UX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-07 12:44:19 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-07 12:44:19 (GMT)
commit11a917d04ee93b239f0be07cf4437364a0c85efb (patch)
treee2679f55ecebb13dae8f22b8bdd4bbfd63e73395 /Modules/Platform/HP-UX.cmake
parent409c936ff44eb6aa82c052dc223adaa630242b23 (diff)
downloadCMake-11a917d04ee93b239f0be07cf4437364a0c85efb.zip
CMake-11a917d04ee93b239f0be07cf4437364a0c85efb.tar.gz
CMake-11a917d04ee93b239f0be07cf4437364a0c85efb.tar.bz2
HP-UX: Always add /usr/lib to rpath (#10571)
Set CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH in the HP-UX platform file to tell CMake to pass -Wl,+b,/usr/lib no matter whether RPATH is enabled or not. This corrects the behavior of -Wl,+nodefaultrpath to look in this default library path as documented.
Diffstat (limited to 'Modules/Platform/HP-UX.cmake')
-rw-r--r--Modules/Platform/HP-UX.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake
index f8893d8..9d357c9 100644
--- a/Modules/Platform/HP-UX.cmake
+++ b/Modules/Platform/HP-UX.cmake
@@ -1,3 +1,5 @@
+SET(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib)
+
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") # .so
SET(CMAKE_DL_LIBS "dld")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a")