summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-16 16:15:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-16 16:15:24 (GMT)
commit8e137c54d6938b2f7dd3f6436262ea4907966084 (patch)
treea3ee9aeccef5570058fa72e4fb97430368c1f3c0 /Modules
parentf483e48d2a2f3361dcf3c60096bbfe9975f90ddf (diff)
downloadCMake-8e137c54d6938b2f7dd3f6436262ea4907966084.zip
CMake-8e137c54d6938b2f7dd3f6436262ea4907966084.tar.gz
CMake-8e137c54d6938b2f7dd3f6436262ea4907966084.tar.bz2
ENH: Enabling soname support on FreeBSD.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/FreeBSD.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/FreeBSD.cmake b/Modules/Platform/FreeBSD.cmake
index 10c4811..91fcbe1 100644
--- a/Modules/Platform/FreeBSD.cmake
+++ b/Modules/Platform/FreeBSD.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 the gcc flags