comparison src/auto/configure @ 18648:53e66eb23321 v8.1.2316

patch 8.1.2316: FORTIFY_SOURCE can also be present in CPPFLAGS Commit: https://github.com/vim/vim/commit/91b992c38769b343b4a66a5f8e589aa9897fdc9f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 17 19:07:42 2019 +0100 patch 8.1.2316: FORTIFY_SOURCE can also be present in CPPFLAGS Problem: FORTIFY_SOURCE can also be present in CPPFLAGS. Solution: Remove it in configure. (Benedikt Morbach, closes https://github.com/vim/vim/issues/2786)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Nov 2019 19:15:03 +0100
parents 2329061e6289
children 9007e9896303
comparison
equal deleted inserted replaced
18647:7fe816006953 18648:53e66eb23321
12987 if ac_fn_c_try_link "$LINENO"; then : 12987 if ac_fn_c_try_link "$LINENO"; then :
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h 12989 $as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
12990 12990
12991 else 12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5
12993 $as_echo "no" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" 12993 $as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
12994 fi 12994 fi
12995 rm -f core conftest.err conftest.$ac_objext \ 12995 rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext 12996 conftest$ac_exeext conftest.$ac_ext
12997 fi 12997 fi
12998 12998
14805 fi 14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14807 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14807 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14808 if test "$gccmajor" -gt "3"; then 14808 if test "$gccmajor" -gt "3"; then
14809 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/'` 14809 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/'`
14810 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811 $as_echo "yes" >&6; } 14812 $as_echo "yes" >&6; }
14812 else 14813 else
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 $as_echo "no" >&6; } 14815 $as_echo "no" >&6; }