2009-07-04 08:14:05

by Filippo Giunchedi

[permalink] [raw]
Subject: [PATCH] remove _FORTIFY_SOURCE=2 from default CFLAGS

otherwise --disable-fortify has no effect and the default is
--enable-fortify anyway
---
acinclude.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 479d3cd..47a9453 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -12,7 +12,7 @@ AC_DEFUN([AC_PROG_CC_PIE], [

AC_DEFUN([COMPILER_FLAGS], [
if (test "${CFLAGS}" = ""); then
- CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
+ CFLAGS="-Wall -O2"
fi
if (test "$USE_MAINTAINER_MODE" = "yes"); then
CFLAGS+=" -Werror -Wextra"
--
1.6.3.3



2009-07-04 16:14:55

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] remove _FORTIFY_SOURCE=2 from default CFLAGS

Hi Filippo,

> otherwise --disable-fortify has no effect and the default is
> --enable-fortify anyway

patch has been applied. Thanks.

Regards

Marcel