[Cmake-commits] [cmake-commits] king committed CYGWIN.cmake 1.20 1.21

cmake-commits at cmake.org cmake-commits at cmake.org
Wed May 27 11:33:40 EDT 2009


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

Modified Files:
	CYGWIN.cmake 
Log Message:
ENH: Auto-import symbols for cygwin executables

This enables the --enable-auto-import linker flag on Cygwin when linking
executables.  It works with the old gcc 3.x compiler and is necessary
for the new gcc 4.x compiler.  See issue #9071.


Index: CYGWIN.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/CYGWIN.cmake,v
retrieving revision 1.20
retrieving revision 1.21
diff -C 2 -d -r1.20 -r1.21
*** CYGWIN.cmake	9 Aug 2007 18:45:23 -0000	1.20
--- CYGWIN.cmake	27 May 2009 15:33:29 -0000	1.21
***************
*** 2,5 ****
--- 2,6 ----
  SET(CYGWIN 1)
  
+ SET(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--enable-auto-import")
  SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,--export-all-symbols -Wl,--enable-auto-import")
  SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})



More information about the Cmake-commits mailing list