summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/NetBSD.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-10 12:36:33 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-10 12:36:33 (GMT)
commit0526552b1000a576cec7e7a9150315a3c15f3ff4 (patch)
tree3bffa2f94b7af1093d056ad3d694d8c5df4ac5ff /Modules/Platform/NetBSD.cmake
parentef756114d5d8335bab7bc120c8081070ea4c1251 (diff)
downloadCMake-0526552b1000a576cec7e7a9150315a3c15f3ff4.zip
CMake-0526552b1000a576cec7e7a9150315a3c15f3ff4.tar.gz
CMake-0526552b1000a576cec7e7a9150315a3c15f3ff4.tar.bz2
ENH: Enabled use of soname and therefore versioning symlinks. Patch is from bug#4558.
Diffstat (limited to 'Modules/Platform/NetBSD.cmake')
-rw-r--r--Modules/Platform/NetBSD.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/NetBSD.cmake b/Modules/Platform/NetBSD.cmake
index 0562e4d..7ce5345 100644
--- a/Modules/Platform/NetBSD.cmake
+++ b/Modules/Platform/NetBSD.cmake
@@ -5,5 +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_SONAME_C_FLAG "-Wl,-soname,")
+ SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
ENDIF(EXISTS /usr/include/dlfcn.h)
INCLUDE(Platform/UnixPaths)