From 619afaccab5cedae6ec78bd627aa8399010c54d3 Mon Sep 17 00:00:00 2001 From: HAMANO Tsukasa Date: Wed, 14 Feb 2024 15:18:08 +0900 Subject: [PATCH] ITS#10177 fix back-perl build for clang15 or later Remove problematic and unnecessary compile flags. --- configure.ac | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a4836a8a02..235262bc8a 100644 --- a/configure.ac +++ b/configure.ac @@ -738,8 +738,22 @@ if test $ol_enable_perl != no ; then fi else - PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`" - PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`" + PERL_CPPFLAGS="" + for opt in `$PERLBIN -MExtUtils::Embed -e ccopts`; do + case "$opt" in + "-flto=auto" | "-Wall" ) + continue;; + esac + PERL_CPPFLAGS="$PERL_CPPFLAGS $opt" + done + PERL_LDFLAGS="" + for opt in `$PERLBIN" -MExtUtils::Embed -e ldopts`; do + case "$opt" in + "-lc" ) + continue;; + esac + PERL_LDFLAGS="$PERL_LDFLAGS $opt" + done if test x"$ol_enable_perl" = "xyes" ; then SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS" -- 2.47.2