forked from aniani/vim
updated for version 7.3.1221
Problem: When build flags change "make distclean" run into a configure error. Solution: When CFLAGS changes delete auto/config.cache. Also avoid adding duplicate text to flags.
This commit is contained in:
@@ -1655,6 +1655,11 @@ tools: $(TOOLS)
|
|||||||
# sure configure is run when it's needed.
|
# sure configure is run when it's needed.
|
||||||
#
|
#
|
||||||
config auto/config.mk: auto/configure config.mk.in config.h.in
|
config auto/config.mk: auto/configure config.mk.in config.h.in
|
||||||
|
if test -f auto/config.cache && \
|
||||||
|
grep '^ac_cv_env_CFLAGS_value=' auto/config.cache > /dev/null && \
|
||||||
|
! grep -x -F 'ac_cv_env_CFLAGS_value=$(CFLAGS)' auto/config.cache > /dev/null; then \
|
||||||
|
rm auto/config.cache; \
|
||||||
|
fi
|
||||||
GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
|
GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
|
||||||
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
|
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
|
||||||
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
|
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
|
||||||
|
9
src/auto/configure
vendored
9
src/auto/configure
vendored
@@ -5133,6 +5133,7 @@ $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
|
|||||||
ldflags_save=$LDFLAGS
|
ldflags_save=$LDFLAGS
|
||||||
CFLAGS="$CFLAGS $perlcppflags"
|
CFLAGS="$CFLAGS $perlcppflags"
|
||||||
LIBS="$LIBS $perllibs"
|
LIBS="$LIBS $perllibs"
|
||||||
|
perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
|
||||||
LDFLAGS="$perlldflags $LDFLAGS"
|
LDFLAGS="$perlldflags $LDFLAGS"
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
@@ -5162,8 +5163,10 @@ rm -f core conftest.err conftest.$ac_objext \
|
|||||||
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
|
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
|
||||||
fi
|
fi
|
||||||
if test "X$perlldflags" != "X"; then
|
if test "X$perlldflags" != "X"; then
|
||||||
|
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
|
||||||
LDFLAGS="$perlldflags $LDFLAGS"
|
LDFLAGS="$perlldflags $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
PERL_LIBS=$perllibs
|
PERL_LIBS=$perllibs
|
||||||
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
||||||
PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
|
PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
|
||||||
@@ -6454,9 +6457,11 @@ $as_echo "$rubyhdrdir" >&6; }
|
|||||||
if test "X$rubyldflags" != "X"; then
|
if test "X$rubyldflags" != "X"; then
|
||||||
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
||||||
if test "X$rubyldflags" != "X"; then
|
if test "X$rubyldflags" != "X"; then
|
||||||
|
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
|
||||||
LDFLAGS="$rubyldflags $LDFLAGS"
|
LDFLAGS="$rubyldflags $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
RUBY_SRC="if_ruby.c"
|
RUBY_SRC="if_ruby.c"
|
||||||
RUBY_OBJ="objects/if_ruby.o"
|
RUBY_OBJ="objects/if_ruby.o"
|
||||||
RUBY_PRO="if_ruby.pro"
|
RUBY_PRO="if_ruby.pro"
|
||||||
@@ -12690,7 +12695,7 @@ $as_echo "no" >&6; }
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
||||||
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
||||||
if test "$gccmajor" -gt "3"; then
|
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 -D_FORTIFY_SOURCE=1/'`
|
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/'`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
else
|
else
|
||||||
@@ -12705,7 +12710,7 @@ $as_echo_n "checking linker --as-needed support... " >&6; }
|
|||||||
LINK_AS_NEEDED=
|
LINK_AS_NEEDED=
|
||||||
# Check if linker supports --as-needed and --no-as-needed options
|
# Check if linker supports --as-needed and --no-as-needed options
|
||||||
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
||||||
LDFLAGS="$LDFLAGS -Wl,--as-needed"
|
LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
|
||||||
LINK_AS_NEEDED=yes
|
LINK_AS_NEEDED=yes
|
||||||
fi
|
fi
|
||||||
if test "$LINK_AS_NEEDED" = yes; then
|
if test "$LINK_AS_NEEDED" = yes; then
|
||||||
|
@@ -776,6 +776,7 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
|
|||||||
ldflags_save=$LDFLAGS
|
ldflags_save=$LDFLAGS
|
||||||
CFLAGS="$CFLAGS $perlcppflags"
|
CFLAGS="$CFLAGS $perlcppflags"
|
||||||
LIBS="$LIBS $perllibs"
|
LIBS="$LIBS $perllibs"
|
||||||
|
perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
|
||||||
LDFLAGS="$perlldflags $LDFLAGS"
|
LDFLAGS="$perlldflags $LDFLAGS"
|
||||||
AC_TRY_LINK(,[ ],
|
AC_TRY_LINK(,[ ],
|
||||||
AC_MSG_RESULT(yes); perl_ok=yes,
|
AC_MSG_RESULT(yes); perl_ok=yes,
|
||||||
@@ -789,8 +790,10 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
|
|||||||
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
|
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
|
||||||
fi
|
fi
|
||||||
if test "X$perlldflags" != "X"; then
|
if test "X$perlldflags" != "X"; then
|
||||||
|
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
|
||||||
LDFLAGS="$perlldflags $LDFLAGS"
|
LDFLAGS="$perlldflags $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
PERL_LIBS=$perllibs
|
PERL_LIBS=$perllibs
|
||||||
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
||||||
PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
|
PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
|
||||||
@@ -1546,9 +1549,11 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
|||||||
dnl configure, so strip these flags first (if present)
|
dnl configure, so strip these flags first (if present)
|
||||||
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
|
||||||
if test "X$rubyldflags" != "X"; then
|
if test "X$rubyldflags" != "X"; then
|
||||||
|
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
|
||||||
LDFLAGS="$rubyldflags $LDFLAGS"
|
LDFLAGS="$rubyldflags $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
RUBY_SRC="if_ruby.c"
|
RUBY_SRC="if_ruby.c"
|
||||||
RUBY_OBJ="objects/if_ruby.o"
|
RUBY_OBJ="objects/if_ruby.o"
|
||||||
RUBY_PRO="if_ruby.pro"
|
RUBY_PRO="if_ruby.pro"
|
||||||
@@ -3719,7 +3724,7 @@ if test "$GCC" = yes; then
|
|||||||
dnl And undefine it first to avoid a warning.
|
dnl And undefine it first to avoid a warning.
|
||||||
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
||||||
if test "$gccmajor" -gt "3"; then
|
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 -D_FORTIFY_SOURCE=1/'`
|
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/'`
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
@@ -3734,7 +3739,7 @@ AC_MSG_CHECKING(linker --as-needed support)
|
|||||||
LINK_AS_NEEDED=
|
LINK_AS_NEEDED=
|
||||||
# Check if linker supports --as-needed and --no-as-needed options
|
# Check if linker supports --as-needed and --no-as-needed options
|
||||||
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
|
||||||
LDFLAGS="$LDFLAGS -Wl,--as-needed"
|
LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
|
||||||
LINK_AS_NEEDED=yes
|
LINK_AS_NEEDED=yes
|
||||||
fi
|
fi
|
||||||
if test "$LINK_AS_NEEDED" = yes; then
|
if test "$LINK_AS_NEEDED" = yes; then
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1221,
|
||||||
/**/
|
/**/
|
||||||
1220,
|
1220,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user