4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: May get multiple _FORTIFY_SOURCE arguments. (Tony Mechelynck)
12 Solution: First remove all these arguments and then add the one we want.
14 Files: src/auto/configure, src/configure.in
17 *** ../vim-7.2.315/src/auto/configure 2009-12-02 17:59:08.000000000 +0100
18 --- src/auto/configure 2009-12-16 17:05:59.000000000 +0100
21 { $as_echo "$as_me:$LINENO: result: no" >&5
24 ! { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
25 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
26 if test "$gccmajor" -gt "3"; then
27 ! CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
28 { $as_echo "$as_me:$LINENO: result: yes" >&5
32 { $as_echo "$as_me:$LINENO: result: no" >&5
35 ! { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
36 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
37 if test "$gccmajor" -gt "3"; then
38 ! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
39 { $as_echo "$as_me:$LINENO: result: yes" >&5
42 *** ../vim-7.2.315/src/configure.in 2009-12-02 17:59:08.000000000 +0100
43 --- src/configure.in 2009-12-16 17:05:55.000000000 +0100
47 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
48 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
49 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
50 if test "$gccmajor" -gt "3"; then
51 ! CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
57 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
58 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
59 + dnl Also remove duplicate _FORTIFY_SOURCE arguments.
60 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
61 if test "$gccmajor" -gt "3"; then
62 ! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
66 *** ../vim-7.2.315/src/version.c 2009-12-02 17:59:08.000000000 +0100
67 --- src/version.c 2009-12-16 17:12:25.000000000 +0100
71 { /* Add new patch number below this line */
77 Have you heard about the new Beowulf cluster? It's so fast, it executes
78 an infinite loop in 6 seconds.
80 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
81 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
82 \\\ download, build and distribute -- http://www.A-A-P.org ///
83 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///