[ros-diffs] [tkreuzer] 49473: [CMAKE] Add /SAFESEH:NO to MSVC linker command line to fix unresolved symbol issue.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Nov 5 00:08:13 UTC 2010


Author: tkreuzer
Date: Fri Nov  5 00:08:12 2010
New Revision: 49473

URL: http://svn.reactos.org/svn/reactos?rev=49473&view=rev
Log:
[CMAKE]
Add /SAFESEH:NO to MSVC linker command line to fix unresolved symbol issue.

Modified:
    branches/cmake-bringup/msc.cmake

Modified: branches/cmake-bringup/msc.cmake
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=49473&r1=49472&r2=49473&view=diff
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Fri Nov  5 00:08:12 2010
@@ -12,6 +12,12 @@
 
 add_definitions(/GS- /Zl /Zi)
 add_definitions(-Dinline=__inline -D__STDC__=1)
+
+IF(${_MACHINE_ARCH_FLAG} MATCHES X86)
+  SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
+  SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
+  SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO")
+ENDIF()
 
 link_directories("${REACTOS_BINARY_DIR}/importlibs" ${REACTOS_BINARY_DIR}/lib/3rdparty/mingw)
 




More information about the Ros-diffs mailing list