comparison src/configure.in @ 1954:a3552c04f4e1 v7.2.251

updated for version 7.2-251
author vimboss
date Fri, 11 Sep 2009 11:44:54 +0000
parents 41d8447a8457
children 1f53050b3868
comparison
equal deleted inserted replaced
1953:378e33d47ab0 1954:a3552c04f4e1
3231 fi 3231 fi
3232 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is 3232 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
3233 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0. 3233 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
3234 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1) 3234 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
3235 if test "$gccmajor" -gt "3"; then 3235 if test "$gccmajor" -gt "3"; then
3236 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1" 3236 CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
3237 AC_MSG_RESULT(yes) 3237 AC_MSG_RESULT(yes)
3238 else 3238 else
3239 AC_MSG_RESULT(no) 3239 AC_MSG_RESULT(no)
3240 fi 3240 fi
3241 fi 3241 fi