Skip to content
Snippets Groups Projects
Commit 5cbc273d authored by HAMANO Tsukasa's avatar HAMANO Tsukasa Committed by Quanah Gibson-Mount
Browse files

ITS#10177 fix back-perl build for clang15 or later

Remove problematic and unnecessary compile flags.
parent f12b3695
No related branches found
No related tags found
1 merge request!686ITS#10177 fix back-perl build for clang15
Pipeline #5451 passed
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment