[Cmake-commits] [cmake-commits] king committed bootstrap 1.117 1.118
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed May 27 11:33:43 EDT 2009
Update of /cvsroot/CMake/CMake
In directory public:/mounts/ram/cvs-serv25187
Modified Files:
bootstrap
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: bootstrap
===================================================================
RCS file: /cvsroot/CMake/CMake/bootstrap,v
retrieving revision 1.117
retrieving revision 1.118
diff -C 2 -d -r1.117 -r1.118
*** bootstrap 16 Mar 2009 14:40:46 -0000 1.117
--- bootstrap 27 May 2009 15:33:37 -0000 1.118
***************
*** 56,59 ****
--- 56,66 ----
cmake_bootstrap_qt_qmake=""
+ # Determine whether this is a Cygwin environment.
+ if echo "${cmake_system}" | grep CYGWIN >/dev/null 2>&1; then
+ cmake_system_cygwin=true
+ else
+ cmake_system_cygwin=false
+ fi
+
# Determine whether this is a MinGW environment.
if echo "${cmake_system}" | grep MINGW >/dev/null 2>&1; then
***************
*** 599,602 ****
--- 606,614 ----
cmake_ld_flags=${LDFLAGS}
+ # Add Cygwin-specific flags
+ if ${cmake_system_cygwin}; then
+ cmake_ld_flags="${LDFLAGS} -Wl,--enable-auto-import"
+ fi
+
# Add Carbon framework on Darwin
if ${cmake_system_darwin}; then
More information about the Cmake-commits
mailing list