From 8e137c54d6938b2f7dd3f6436262ea4907966084 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 16 Mar 2006 11:15:24 -0500 Subject: ENH: Enabling soname support on FreeBSD. --- Modules/Platform/FreeBSD.cmake | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v0.12