Mercurial > vim
comparison src/configure.in @ 2019:966289a3dd7e v7.2.316
updated for version 7.2-316
author | vimboss |
---|---|
date | Wed, 16 Dec 2009 16:14:51 +0000 |
parents | c58b9479e304 |
children | d8983769c9dd |
comparison
equal
deleted
inserted
replaced
2018:c58b9479e304 | 2019:966289a3dd7e |
---|---|
3239 else | 3239 else |
3240 AC_MSG_RESULT(no) | 3240 AC_MSG_RESULT(no) |
3241 fi | 3241 fi |
3242 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is | 3242 dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is |
3243 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0. | 3243 dnl declared as char x[1] but actually longer. Introduced in gcc 4.0. |
3244 dnl Also remove duplicate _FORTIFY_SOURCE arguments. | |
3244 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1) | 3245 AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1) |
3245 if test "$gccmajor" -gt "3"; then | 3246 if test "$gccmajor" -gt "3"; then |
3246 CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'` | 3247 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` |
3247 AC_MSG_RESULT(yes) | 3248 AC_MSG_RESULT(yes) |
3248 else | 3249 else |
3249 AC_MSG_RESULT(no) | 3250 AC_MSG_RESULT(no) |
3250 fi | 3251 fi |
3251 fi | 3252 fi |