|
From: <th...@us...> - 2014-07-24 07:41:06
|
Revision: 555
http://sourceforge.net/p/cgreen/code/555
Author: thoni56
Date: 2014-07-24 07:40:45 +0000 (Thu, 24 Jul 2014)
Log Message:
-----------
Added an -O2 options if FORTIFY_SOURCE since some GCC versions requires it
Modified Paths:
--------------
trunk/cgreen/cmake/Modules/DefineCompilerFlags.cmake
Modified: trunk/cgreen/cmake/Modules/DefineCompilerFlags.cmake
===================================================================
--- trunk/cgreen/cmake/Modules/DefineCompilerFlags.cmake 2014-07-19 09:20:26 UTC (rev 554)
+++ trunk/cgreen/cmake/Modules/DefineCompilerFlags.cmake 2014-07-24 07:40:45 UTC (rev 555)
@@ -56,7 +56,7 @@
check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
if (WITH_FORTIFY_SOURCE)
- add_definitions(-D_FORTIFY_SOURCE=2)
+ add_definitions(-D_FORTIFY_SOURCE=2 -O2)
endif (WITH_FORTIFY_SOURCE)
endif (CMAKE_COMPILER_IS_GNUCC OR COMPILER_IS_CLANG)
endif (UNIX)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|