comparison src/configure.ac @ 12555:55257baece9a v8.0.1156

patch 8.0.1156: trouble from removing one -W argument from Perl CFLAGS commit https://github.com/vim/vim/commit/1ec96c926974208bd47710384c8202c47d0752d0 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 27 21:42:08 2017 +0200 patch 8.0.1156: trouble from removing one -W argument from Perl CFLAGS Problem: Removing one -W argument from Perl CFLAGS may cause trouble. Solution: Remove all -W flags. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Wed, 27 Sep 2017 21:45:04 +0200
parents ebadf868ac4b
children 12f4408c7f69
comparison
equal deleted inserted replaced
12554:1bce0814c78a 12555:55257baece9a
1004 done 1004 done
1005 AC_SUBST(vi_cv_perl_xsubpp) 1005 AC_SUBST(vi_cv_perl_xsubpp)
1006 dnl Remove "-fno-something", it breaks using cproto. 1006 dnl Remove "-fno-something", it breaks using cproto.
1007 dnl Remove "-fdebug-prefix-map", it isn't supported by clang. 1007 dnl Remove "-fdebug-prefix-map", it isn't supported by clang.
1008 dnl Remove "FORTIFY_SOURCE", it will be defined twice. 1008 dnl Remove "FORTIFY_SOURCE", it will be defined twice.
1009 dnl remove -pipe and -Wxxx, it confuses cproto
1009 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 1010 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
1010 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//' \ 1011 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//' \
1011 -e 's/-fdebug-prefix-map[[^ ]]*//g' \ 1012 -e 's/-fdebug-prefix-map[[^ ]]*//g' \
1012 -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=.//g'` 1013 -e 's/-pipe //' \
1014 -e 's/-W[[^ ]]*//g' \
1015 -e 's/-D_FORTIFY_SOURCE=.//g'`
1013 dnl Remove "-lc", it breaks on FreeBSD when using "-pthread". 1016 dnl Remove "-lc", it breaks on FreeBSD when using "-pthread".
1014 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 1017 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
1015 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 1018 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
1016 -e 's/-bE:perl.exp//' -e 's/-lc //'` 1019 -e 's/-bE:perl.exp//' -e 's/-lc //'`
1017 dnl Don't add perl lib to $LIBS: if it's not in LD_LIBRARY_PATH 1020 dnl Don't add perl lib to $LIBS: if it's not in LD_LIBRARY_PATH
1035 CFLAGS=$cflags_save 1038 CFLAGS=$cflags_save
1036 LIBS=$libs_save 1039 LIBS=$libs_save
1037 LDFLAGS=$ldflags_save 1040 LDFLAGS=$ldflags_save
1038 if test $perl_ok = yes; then 1041 if test $perl_ok = yes; then
1039 if test "X$perlcppflags" != "X"; then 1042 if test "X$perlcppflags" != "X"; then
1040 dnl remove -pipe and -Wxxx, it confuses cproto 1043 PERL_CFLAGS=$perlcppflags
1041 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
1042 fi 1044 fi
1043 if test "X$perlldflags" != "X"; then 1045 if test "X$perlldflags" != "X"; then
1044 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 1046 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
1045 LDFLAGS="$perlldflags $LDFLAGS" 1047 LDFLAGS="$perlldflags $LDFLAGS"
1046 fi 1048 fi