]> granicus.if.org Git - vim/commitdiff
patch 8.0.1156: trouble from removing one -W argument from Perl CFLAGS v8.0.1156
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Sep 2017 19:42:08 +0000 (21:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Sep 2017 19:42:08 +0000 (21:42 +0200)
Problem:    Removing one -W argument from Perl CFLAGS may cause trouble.
Solution:   Remove all -W flags. (Christian Brabandt)

src/auto/configure
src/configure.ac
src/version.c

index 04b997d631a67d8d54e20e9d5b0e6482c50bb2a3..947860f1688fddf25b353076fba98b9cd0d59959 100755 (executable)
@@ -5717,10 +5717,12 @@ $as_echo "OK" >&6; }
        fi
       done
 
-                        perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
+                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
                -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
                -e 's/-fdebug-prefix-map[^ ]*//g' \
-               -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=.//g'`
+               -e 's/-pipe //' \
+               -e 's/-W[^ ]*//g' \
+                -e 's/-D_FORTIFY_SOURCE=.//g'`
             perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
                sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
                        -e 's/-bE:perl.exp//' -e 's/-lc //'`
@@ -5761,7 +5763,7 @@ rm -f core conftest.err conftest.$ac_objext \
       LDFLAGS=$ldflags_save
       if test $perl_ok = yes; then
        if test "X$perlcppflags" != "X"; then
-                 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
+         PERL_CFLAGS=$perlcppflags
        fi
        if test "X$perlldflags" != "X"; then
          if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
index 1183ab44b66a70285179faa232a554b7f01c07f6..76714b1e7bab64a21f10b157e8035dd2eda4db40 100644 (file)
@@ -1006,10 +1006,13 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
       dnl Remove "-fno-something", it breaks using cproto.
       dnl Remove "-fdebug-prefix-map", it isn't supported by clang.
       dnl Remove "FORTIFY_SOURCE", it will be defined twice.
+      dnl remove -pipe and -Wxxx, it confuses cproto
       perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
                -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//' \
                -e 's/-fdebug-prefix-map[[^ ]]*//g' \
-               -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=.//g'`
+               -e 's/-pipe //' \
+               -e 's/-W[[^ ]]*//g' \
+               -e 's/-D_FORTIFY_SOURCE=.//g'`
       dnl Remove "-lc", it breaks on FreeBSD when using "-pthread".
       perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
                sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
@@ -1037,8 +1040,7 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
       LDFLAGS=$ldflags_save
       if test $perl_ok = yes; then
        if test "X$perlcppflags" != "X"; then
-         dnl remove -pipe and -Wxxx, it confuses cproto
-         PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
+         PERL_CFLAGS=$perlcppflags
        fi
        if test "X$perlldflags" != "X"; then
          if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
index ba4f56a6fa86c455d1d2341c6dbbfcf0949d79cd..902b05c76bbff8f763262d2dc7713260cf0f6529 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1156,
 /**/
     1155,
 /**/