summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/FreeBSD.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-01 14:57:41 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-01 14:57:41 (GMT)
commitf49ec94e9f4e90a1c65048c1a587469ece5ee05a (patch)
treeb0a63c250f28bad620fd0ce1f7ceb9206b9d992c /Modules/Platform/FreeBSD.cmake
parent65761dee552eed39ba2b93d210dbc257f9a2ce50 (diff)
downloadCMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.zip
CMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.tar.gz
CMake-f49ec94e9f4e90a1c65048c1a587469ece5ee05a.tar.bz2
ENH: Enable dependent library search paths on more platforms
- HP-UX needs dependent library paths as -L options. - IRIX needs dependent library paths as -L options. - Sun needs dependent library paths as -L options. - FreeBSD needs dependent library paths in -rpath-link option.
Diffstat (limited to 'Modules/Platform/FreeBSD.cmake')
-rw-r--r--Modules/Platform/FreeBSD.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/FreeBSD.cmake b/Modules/Platform/FreeBSD.cmake
index fcfa121..299847b 100644
--- a/Modules/Platform/FreeBSD.cmake
+++ b/Modules/Platform/FreeBSD.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")