[cmake-commits] king committed FreeBSD.cmake 1.8 1.9

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Sep 15 14:58:32 EDT 2006


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv18874

Modified Files:
	FreeBSD.cmake 
Log Message:
ENH: Enabling link type selection flags for this platform.  See bug#1644 for details.


Index: FreeBSD.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/FreeBSD.cmake,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- FreeBSD.cmake	27 Mar 2006 16:09:19 -0000	1.8
+++ FreeBSD.cmake	15 Sep 2006 18:58:27 -0000	1.9
@@ -8,4 +8,14 @@
   SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
   SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
 ENDIF(EXISTS /usr/include/dlfcn.h)
+
+# Initialize C link type selection flags.  These flags are used when
+# building a shared library, shared module, or executable that links
+# to other libraries to select whether to use the static or shared
+# versions of the libraries.
+FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
+  SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
+  SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
+ENDFOREACH(type)
+
 INCLUDE(Platform/UnixPaths)



More information about the Cmake-commits mailing list