From 904c5b6c59cd14c3c3fe6f03f86efa776a931bef Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 21 Jun 2015 13:41:30 +0200 Subject: [PATCH] patch 7.4.750 Problem: Cannot build with clang 3.5 on Cygwin with perl enabled. Solution: Strip "-fdebug-prefix-map" in configure. (Ken Takata) --- src/configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configure.in b/src/configure.in index e7cd922aca..01ff167407 100644 --- a/src/configure.in +++ b/src/configure.in @@ -957,8 +957,10 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then done AC_SUBST(vi_cv_perlsitelib) dnl Remove "-fno-something", it breaks using cproto. + dnl Remove "-fdebug-prefix-map", it isn't supported by clang. perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ - -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//'` + -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[[^ ]]*//' \ + -e 's/-fdebug-prefix-map[[^ ]]*//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' \