Author: tkreuzer
Date: Tue Mar 5 08:25:22 2013
New Revision: 58432
URL:
http://svn.reactos.org/svn/reactos?rev=58432&view=rev
Log:
[CMAKE]
Add -mstackrealign option for GCC 4.7+. Seems to fix some problems.
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=58432&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Tue Mar 5 08:25:22 2013
@@ -11,6 +11,9 @@
# Compiler Core
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
+if(GCC_VERSION VERSION_GREATER 4.7)
+ add_compile_flags("-mstackrealign")
+endif()
#bug
#file(TO_NATIVE_PATH ${REACTOS_SOURCE_DIR} REACTOS_SOURCE_DIR_NATIVE)