Patch 8.1.2316
Problem:    FORTIFY_SOURCE can also be present in CPPFLAGS.
Solution:   Remove it in configure. (Benedikt Morbach, closes #2786)
Files:      src/configure.ac, src/auto/configure


*** ../vim-8.1.2315/src/configure.ac    2019-10-23 22:35:31.525945635 +0200
--- src/configure.ac    2019-11-17 18:57:15.399029623 +0100
***************
*** 3789,3795 ****
       ca_context *hello;
       ca_context_create(&hello);],
         AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA),
!        AC_MSG_RESULT(no); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")
  fi
  
  
--- 3789,3795 ----
       ca_context *hello;
       ca_context_create(&hello);],
         AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA),
!        AC_MSG_RESULT(no; try installing libcanberra-dev); 
CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")
  fi
  
  
***************
*** 4482,4487 ****
--- 4482,4488 ----
    AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
    if test "$gccmajor" -gt "3"; then
      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/'`
+     CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 
's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
      AC_MSG_RESULT(yes)
    else
      AC_MSG_RESULT(no)
*** ../vim-8.1.2315/src/auto/configure  2019-10-23 22:35:31.529945619 +0200
--- src/auto/configure  2019-11-17 18:57:19.159011656 +0100
***************
*** 12989,12996 ****
  $as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
  
  else
!   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! $as_echo "no" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
--- 12989,12996 ----
  $as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
  
  else
!   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing 
libcanberra-dev" >&5
! $as_echo "no; try installing libcanberra-dev" >&6; }; 
CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
***************
*** 14807,14812 ****
--- 14807,14813 ----
  $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
    if test "$gccmajor" -gt "3"; then
      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/'`
+     CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 
's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  $as_echo "yes" >&6; }
    else
*** ../vim-8.1.2315/src/version.c       2019-11-17 18:09:33.613491551 +0100
--- src/version.c       2019-11-17 18:56:40.711195118 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     2316,
  /**/

-- 
>From "know your smileys":
 +<(:-) The Pope

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201911171812.xAHIC2Wj021117%40masaka.moolenaar.net.

Raspunde prin e-mail lui