Revision: 54436
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54436&view=rev
Author:   brlcad
Date:     2013-02-20 04:16:31 +0000 (Wed, 20 Feb 2013)
Log Message:
-----------
latest glibc-1.6 changed _FORTIFY_SOURCE to spew a warning if not compiling 
optimized.  change our build to match, adding the flag only when building 
optimized (not debug like we want).

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2013-02-20 04:15:17 UTC (rev 54435)
+++ brlcad/trunk/CMakeLists.txt 2013-02-20 04:16:31 UTC (rev 54436)
@@ -1384,11 +1384,13 @@
   include(${BRLCAD_CMAKE_DIR}/BRLCAD_CompilerFlags.cmake)
 endif(NOT MSVC)
 
-# If doing a debug build, set _FORTIFY_SOURCE to 2. Provides
-# compile-time best-practice error checking on certain libc
-# functions (e.g., memcpy), and provides run-time checks on buffer
-# lengths and memory regions.
-if(${BRLCAD_DEBUG_BUILD} MATCHES "ON")
+# If doing an optimized build, set _FORTIFY_SOURCE to 2.  Provides
+# compile-time best-practice error checking on certain libc functions
+# (e.g., memcpy), and provides run-time checks on buffer lengths and
+# memory regions.  Unfortunately, glibc-1.6 made _FORTIFY_SOURCE spew
+# an unquellable warning if optimization is disabled so we can't tie
+# the flag to debug builds.
+if(${BRLCAD_OPTIMIZED_BUILD} MATCHES "ON")
   CONFIG_H_APPEND(BRLCAD "#define _FORTIFY_SOURCE 2\n")
 endif(${BRLCAD_DEBUG_BUILD} MATCHES "ON")
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to