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.
This commit is contained in:
Brad King 2010-09-07 08:44:19 -04:00
parent 409c936ff4
commit 11a917d04e
1 changed files with 2 additions and 0 deletions

View File

@ -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")