Add updated harden flags
authorBrian Aker <brian@tangent.org>
Mon, 29 Apr 2013 14:58:26 +0000 (10:58 -0400)
committerBrian Aker <brian@tangent.org>
Mon, 29 Apr 2013 14:58:26 +0000 (10:58 -0400)
m4/ax_harden_compiler_flags.m4

index 2783f291b1befe5e5f56d5d0528189e43a58003b..d4fccad605d56b726da94ffe6009dbb8948743e7 100644 (file)
@@ -196,7 +196,7 @@ AC_DEFUN([_HARDEN_CC_COMPILER_FLAGS],
           _APPEND_COMPILE_FLAGS_ERROR([-fPIE -pie])
           _APPEND_COMPILE_FLAGS_ERROR([-Wsizeof-pointer-memaccess])
           _APPEND_COMPILE_FLAGS_ERROR([-Wpacked])
-          _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
+#         _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
           _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code])
 
           AS_IF([test "x$ax_enable_debug" = xno],
@@ -281,7 +281,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS],
           _APPEND_COMPILE_FLAGS_ERROR([-Wunsafe-loop-optimizations])
           _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations])
           _APPEND_COMPILE_FLAGS_ERROR([-Wc++11-compat])
-          _APPEND_COMPILE_FLAGS_ERROR([-Weffc++])
+#         _APPEND_COMPILE_FLAGS_ERROR([-Weffc++])
           AS_IF([test "x$MINGW" != xyes],[
             AS_IF([test "x$ac_cv_vcs_checkout" = xyes],[
               AS_IF([test "x$enable_shared" = "xyes"],[
@@ -309,7 +309,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS],
               ])
             ])
           ])
-          _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast])
+#         _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast])
           _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered])
           _APPEND_COMPILE_FLAGS_ERROR([-Wunused])
           _APPEND_COMPILE_FLAGS_ERROR([-Wunused-result])
@@ -325,7 +325,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS],
           _APPEND_COMPILE_FLAGS_ERROR([-fPIE -pie])
           _APPEND_COMPILE_FLAGS_ERROR([-Wsizeof-pointer-memaccess])
           _APPEND_COMPILE_FLAGS_ERROR([-Wpacked])
-          _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
+#         _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long])
           _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code])
 
           AS_IF([test "x$ax_enable_debug" = xno],