From 11a917d04ee93b239f0be07cf4437364a0c85efb Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 7 Sep 2010 08:44:19 -0400 Subject: [PATCH] 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. --- Modules/Platform/HP-UX.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index f8893d8d3..9d357c942 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")