comparison src/auto/configure @ 24301:c5cb45fc82d3 v8.2.2691

patch 8.2.2691: autoconf may mess up compiler flags Commit: https://github.com/vim/vim/commit/3fa5e64e0ed55de718e48d0268edc360b2352bc1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 2 13:30:59 2021 +0200 patch 8.2.2691: autoconf may mess up compiler flags Problem: Autoconf may mess up compiler flags. Solution: Handle removing FORTIFY_SOURCE a bit better. (Vladimir Lomov, closes #8049)
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Apr 2021 13:45:03 +0200
parents cdeec1389c8c
children aa4342593469
comparison
equal deleted inserted replaced
24300:8ed6e57cc3bd 24301:c5cb45fc82d3
14904 $as_echo "no" >&6; } 14904 $as_echo "no" >&6; }
14905 fi 14905 fi
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14907 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14907 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14908 if test "$gccmajor" -gt "3"; then 14908 if test "$gccmajor" -gt "3"; then
14909 CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` 14909 CFLAGS=`echo "$CFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
14910 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'` 14910 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14912 $as_echo "yes" >&6; } 14912 $as_echo "yes" >&6; }
14913 else 14913 else
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915 $as_echo "no" >&6; } 14915 $as_echo "no" >&6; }