mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
configure: Don't define _FORTIFY_SOURCE.
We routinely test the upstream code by running everything under valgrind, and in any case _FORTIFY_SOURCE is usually defined by downstream Linux distros and we can leave the optimization vs safety decision to them. See this bug: https://bugs.gentoo.org/640494
This commit is contained in:
@@ -119,12 +119,6 @@ AC_SUBST([NO_UM_CFLAGS])
|
||||
|
||||
AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
|
||||
AC_DEFINE([GNULIB_PORTCHECK], [1], [Enable some gnulib portability checks.])
|
||||
AH_VERBATIM([FORTIFY_SOURCE],[
|
||||
/* Enable compile-time and run-time bounds-checking, and some warnings. */
|
||||
#if __OPTIMIZE__ && (! defined (_FORTIFY_SOURCE) || _FORTIFY_SOURCE < 2)
|
||||
# undef _FORTIFY_SOURCE
|
||||
# define _FORTIFY_SOURCE 2
|
||||
#endif])
|
||||
|
||||
AC_C_PROTOTYPES
|
||||
test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
|
||||
|
||||
Reference in New Issue
Block a user