瀏覽代碼

document why we don't enable fortify without optimizations

Samuel Thibault 8 年之前
父節點
當前提交
6b343fd01d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -1517,6 +1517,9 @@ AC_MSG_RESULT($enable_fast)
 if test x$enable_fast = xyes; then
 	AC_DEFINE(STARPU_NO_ASSERT, [1], [disable assertions])
 else
+        # fortify gets really enabled only with optimizations, avoid enabling it
+        # when they optimizations are not enabled, because with some glibc it
+        # spews a lot of warnings.
 	if test x$enable_debug != xyes; then
 		if test x$GCC = xyes; then
 			CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=1"