[cmake-commits] king committed QNX.cmake 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 18 09:40:15 EDT 2006


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

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


Index: QNX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/QNX.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- QNX.cmake	14 Mar 2005 17:18:23 -0000	1.2
+++ QNX.cmake	18 Sep 2006 13:40:12 -0000	1.3
@@ -9,3 +9,12 @@
 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
+
+# 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)



More information about the Cmake-commits mailing list