From: HAMANO Tsukasa Date: Wed, 14 Feb 2024 06:18:08 +0000 (+0900) Subject: ITS#10177 fix back-perl build for clang15 or later X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cbc273d1ca77bde6dc5bb6254bdcd0851081833;p=thirdparty%2Fopenldap.git ITS#10177 fix back-perl build for clang15 or later Remove problematic and unnecessary compile flags. --- diff --git a/configure.ac b/configure.ac index 49fd54c7b3..e941fe7dbb 100644 --- a/configure.ac +++ b/configure.ac @@ -716,8 +716,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"