|
Karsten Hopp |
62cc40 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
62cc40 |
Subject: Patch 7.3.1221
|
|
Karsten Hopp |
62cc40 |
Fcc: outbox
|
|
Karsten Hopp |
62cc40 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
62cc40 |
Mime-Version: 1.0
|
|
Karsten Hopp |
62cc40 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
62cc40 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
62cc40 |
------------
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
Patch 7.3.1221
|
|
Karsten Hopp |
62cc40 |
Problem: When build flags change "make distclean" run into a configure
|
|
Karsten Hopp |
62cc40 |
error.
|
|
Karsten Hopp |
62cc40 |
Solution: When CFLAGS changes delete auto/config.cache. Also avoid adding
|
|
Karsten Hopp |
62cc40 |
duplicate text to flags.
|
|
Karsten Hopp |
62cc40 |
Files: src/Makefile, src/configure.in, src/auto/configure
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
*** ../vim-7.3.1220/src/Makefile 2013-06-16 14:20:10.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
--- src/Makefile 2013-06-18 23:04:56.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 1655,1660 ****
|
|
Karsten Hopp |
62cc40 |
--- 1656,1666 ----
|
|
Karsten Hopp |
62cc40 |
# sure configure is run when it's needed.
|
|
Karsten Hopp |
62cc40 |
#
|
|
Karsten Hopp |
62cc40 |
config auto/config.mk: auto/configure config.mk.in config.h.in
|
|
Karsten Hopp |
62cc40 |
+ if test -f auto/config.cache && \
|
|
Karsten Hopp |
62cc40 |
+ grep '^ac_cv_env_CFLAGS_value=' auto/config.cache > /dev/null && \
|
|
Karsten Hopp |
62cc40 |
+ ! grep -x -F 'ac_cv_env_CFLAGS_value=$(CFLAGS)' auto/config.cache > /dev/null; then \
|
|
Karsten Hopp |
62cc40 |
+ rm auto/config.cache; \
|
|
Karsten Hopp |
62cc40 |
+ fi
|
|
Karsten Hopp |
62cc40 |
GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
|
|
Karsten Hopp |
62cc40 |
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
|
|
Karsten Hopp |
62cc40 |
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
|
|
Karsten Hopp |
62cc40 |
*** ../vim-7.3.1220/src/configure.in 2013-06-17 20:27:13.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
--- src/configure.in 2013-06-18 23:04:56.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 776,781 ****
|
|
Karsten Hopp |
62cc40 |
--- 776,782 ----
|
|
Karsten Hopp |
62cc40 |
ldflags_save=$LDFLAGS
|
|
Karsten Hopp |
62cc40 |
CFLAGS="$CFLAGS $perlcppflags"
|
|
Karsten Hopp |
62cc40 |
LIBS="$LIBS $perllibs"
|
|
Karsten Hopp |
62cc40 |
+ perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
|
|
Karsten Hopp |
62cc40 |
LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
AC_TRY_LINK(,[ ],
|
|
Karsten Hopp |
62cc40 |
AC_MSG_RESULT(yes); perl_ok=yes,
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 789,795 ****
|
|
Karsten Hopp |
62cc40 |
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "X$perlldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
PERL_LIBS=$perllibs
|
|
Karsten Hopp |
62cc40 |
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
|
Karsten Hopp |
62cc40 |
--- 790,798 ----
|
|
Karsten Hopp |
62cc40 |
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "X$perlldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
! fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
PERL_LIBS=$perllibs
|
|
Karsten Hopp |
62cc40 |
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 1546,1552 ****
|
|
Karsten Hopp |
62cc40 |
dnl configure, so strip these flags first (if present)
|
|
Karsten Hopp |
62cc40 |
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$rubyldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
RUBY_SRC="if_ruby.c"
|
|
Karsten Hopp |
62cc40 |
--- 1549,1557 ----
|
|
Karsten Hopp |
62cc40 |
dnl configure, so strip these flags first (if present)
|
|
Karsten Hopp |
62cc40 |
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$rubyldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
! fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
RUBY_SRC="if_ruby.c"
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 3719,3725 ****
|
|
Karsten Hopp |
62cc40 |
dnl And undefine it first to avoid a warning.
|
|
Karsten Hopp |
62cc40 |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
62cc40 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
62cc40 |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
62cc40 |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
62cc40 |
else
|
|
Karsten Hopp |
62cc40 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
62cc40 |
--- 3724,3730 ----
|
|
Karsten Hopp |
62cc40 |
dnl And undefine it first to avoid a warning.
|
|
Karsten Hopp |
62cc40 |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
62cc40 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
62cc40 |
! 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/'`
|
|
Karsten Hopp |
62cc40 |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
62cc40 |
else
|
|
Karsten Hopp |
62cc40 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 3734,3740 ****
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=
|
|
Karsten Hopp |
62cc40 |
# Check if linker supports --as-needed and --no-as-needed options
|
|
Karsten Hopp |
62cc40 |
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$LDFLAGS -Wl,--as-needed"
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=yes
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "$LINK_AS_NEEDED" = yes; then
|
|
Karsten Hopp |
62cc40 |
--- 3739,3745 ----
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=
|
|
Karsten Hopp |
62cc40 |
# Check if linker supports --as-needed and --no-as-needed options
|
|
Karsten Hopp |
62cc40 |
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=yes
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "$LINK_AS_NEEDED" = yes; then
|
|
Karsten Hopp |
62cc40 |
*** ../vim-7.3.1220/src/auto/configure 2013-06-17 20:27:13.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
--- src/auto/configure 2013-06-18 23:27:35.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 5133,5138 ****
|
|
Karsten Hopp |
62cc40 |
--- 5133,5139 ----
|
|
Karsten Hopp |
62cc40 |
ldflags_save=$LDFLAGS
|
|
Karsten Hopp |
62cc40 |
CFLAGS="$CFLAGS $perlcppflags"
|
|
Karsten Hopp |
62cc40 |
LIBS="$LIBS $perllibs"
|
|
Karsten Hopp |
62cc40 |
+ perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
|
|
Karsten Hopp |
62cc40 |
LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
62cc40 |
/* end confdefs.h. */
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 5162,5168 ****
|
|
Karsten Hopp |
62cc40 |
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "X$perlldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
PERL_LIBS=$perllibs
|
|
Karsten Hopp |
62cc40 |
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
|
Karsten Hopp |
62cc40 |
--- 5163,5171 ----
|
|
Karsten Hopp |
62cc40 |
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "X$perlldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$perlldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
! fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
PERL_LIBS=$perllibs
|
|
Karsten Hopp |
62cc40 |
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 6454,6460 ****
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$rubyldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
RUBY_SRC="if_ruby.c"
|
|
Karsten Hopp |
62cc40 |
--- 6457,6465 ----
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
|
Karsten Hopp |
62cc40 |
if test "X$rubyldflags" != "X"; then
|
|
Karsten Hopp |
62cc40 |
! if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$rubyldflags $LDFLAGS"
|
|
Karsten Hopp |
62cc40 |
! fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
RUBY_SRC="if_ruby.c"
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 12690,12696 ****
|
|
Karsten Hopp |
62cc40 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
62cc40 |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
62cc40 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
62cc40 |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
62cc40 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
62cc40 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
62cc40 |
else
|
|
Karsten Hopp |
62cc40 |
--- 12695,12701 ----
|
|
Karsten Hopp |
62cc40 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
62cc40 |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
62cc40 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
62cc40 |
! 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/'`
|
|
Karsten Hopp |
62cc40 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
62cc40 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
62cc40 |
else
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 12705,12711 ****
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=
|
|
Karsten Hopp |
62cc40 |
# Check if linker supports --as-needed and --no-as-needed options
|
|
Karsten Hopp |
62cc40 |
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS="$LDFLAGS -Wl,--as-needed"
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=yes
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "$LINK_AS_NEEDED" = yes; then
|
|
Karsten Hopp |
62cc40 |
--- 12710,12716 ----
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=
|
|
Karsten Hopp |
62cc40 |
# Check if linker supports --as-needed and --no-as-needed options
|
|
Karsten Hopp |
62cc40 |
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
|
Karsten Hopp |
62cc40 |
! LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
|
|
Karsten Hopp |
62cc40 |
LINK_AS_NEEDED=yes
|
|
Karsten Hopp |
62cc40 |
fi
|
|
Karsten Hopp |
62cc40 |
if test "$LINK_AS_NEEDED" = yes; then
|
|
Karsten Hopp |
62cc40 |
*** ../vim-7.3.1220/src/version.c 2013-06-17 22:43:18.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
--- src/version.c 2013-06-18 23:18:45.000000000 +0200
|
|
Karsten Hopp |
62cc40 |
***************
|
|
Karsten Hopp |
62cc40 |
*** 730,731 ****
|
|
Karsten Hopp |
62cc40 |
--- 730,733 ----
|
|
Karsten Hopp |
62cc40 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
62cc40 |
+ /**/
|
|
Karsten Hopp |
62cc40 |
+ 1221,
|
|
Karsten Hopp |
62cc40 |
/**/
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
--
|
|
Karsten Hopp |
62cc40 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
62cc40 |
251. You've never seen your closest friends who usually live WAY too far away.
|
|
Karsten Hopp |
62cc40 |
|
|
Karsten Hopp |
62cc40 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
62cc40 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
62cc40 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
62cc40 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|