summaryrefslogtreecommitdiffstats
path: root/src/auto
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-05-11 20:18:21 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-11 20:22:32 +0200
commit9c0ff47098ac20a8c93e8f91c0c8c72f9add3ce8 (patch)
tree81615ce160d9defa0054b0fae1b9ee2f1ca36cf1 /src/auto
parent58448e09be497a8abb595ae309b6edfbc8e0e05a (diff)
patch 9.1.0408: configure fails on Fedora when including perlv9.1.0408
Problem: configure fails on Fedora when including perl (chesheer-smile) Solution: Filter out -spec=<path> from $LIBS and $LDFLAGS to avoid linking relocation errors for unrelated autoconf tests. closes: #14526 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 0e0cf8efed..8433133c61 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -6502,11 +6502,13 @@ printf "%s\n" "$vi_cv_perl_xsubpp" >&6; }
-e 's/-flto\(=auto\)\? //' \
-e 's/-W[^ ]*//g' \
-e 's/-D_FORTIFY_SOURCE=.//g'`
- perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
+ perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
+ -e 's/-specs=[^ ]*//g' \
-e 's/-bE:perl.exp//' -e 's/-lc //'`
- perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
- -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
+ perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
+ -e 'ccdlflags' | sed -e 's/-bE:perl.exp//' \
+ -e 's/-specs=[^ ]*//g' `
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
printf %s "checking if compile and link flags for Perl are sane... " >&6; }