diff src/auto/configure @ 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
line wrap: on
line diff
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -17135,7 +17135,7 @@ if test "$GCC" = yes; then
       { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
   if test "$gccmajor" -gt "3"; then
-    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
+    CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
     { $as_echo "$as_me:$LINENO: result: yes" >&5
 $as_echo "yes" >&6; }
   else