diff options
author | Brad King <brad.king@kitware.com> | 2008-02-02 08:58:53 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-02 08:58:53 -0500 |
commit | f2dfa8925b10705dabcc9726f26193132b3fd416 (patch) | |
tree | 3ea4b42264763504429baec0946557e052d8cda2 /Modules | |
parent | dce9f2dad78cab8d2c6532ff4313b972c7660dc7 (diff) | |
download | cmake-f2dfa8925b10705dabcc9726f26193132b3fd416.tar.gz |
ENH: Enable dependent library search paths on more platforms
- NetBSD needs dependent library paths in -rpath-link option.
- kFreeBSD needs dependent library paths in -rpath-link option.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/NetBSD.cmake | 1 | ||||
-rw-r--r-- | Modules/Platform/kFreeBSD.cmake | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/NetBSD.cmake b/Modules/Platform/NetBSD.cmake index 5e50fd3a18..abf0a61b7c 100644 --- a/Modules/Platform/NetBSD.cmake +++ b/Modules/Platform/NetBSD.cmake @@ -5,6 +5,7 @@ IF(EXISTS /usr/include/dlfcn.h) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty + SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,") SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,") SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic") diff --git a/Modules/Platform/kFreeBSD.cmake b/Modules/Platform/kFreeBSD.cmake index 70eb52a9de..b14514accf 100644 --- a/Modules/Platform/kFreeBSD.cmake +++ b/Modules/Platform/kFreeBSD.cmake @@ -5,6 +5,7 @@ SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") +SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,") SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,") |