build: Avoid redefining _FORTIFY_SOURCE

Gentoo (and others) define _FORTIFY_SOURCE=2 by default.  Since we
always define it as well, this results in redefinition warnings &
configure failure.
This commit is contained in:
Denis Kenzior 2014-08-01 09:47:33 -05:00
parent 1f65caf4e4
commit 2c0e997ee8
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ AC_DEFUN([AC_PROG_CC_PIE], [
AC_DEFUN([COMPILER_FLAGS], [
if (test "${CFLAGS}" = ""); then
CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2 -fsigned-char"
CFLAGS="-Wall -O2 -fsigned-char "
CFLAGS+=" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
fi
if (test "$USE_MAINTAINER_MODE" = "yes"); then
CFLAGS+=" -Werror -Wextra"