Browse Source

Allow user to override -D_FORTIFY_SOURCE

Samuel Thibault 4 years ago
parent
commit
d912ac1196
1 changed files with 2 additions and 2 deletions
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -1791,11 +1791,11 @@ 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
+        # when 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"
+			CPPFLAGS="-D_FORTIFY_SOURCE=1 $CPPFLAGS"
 		fi
 	fi
 fi