mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
ITS#10177 fix back-perl build for clang15 or later
Remove problematic and unnecessary compile flags.
This commit is contained in:
parent
f12b369513
commit
5cbc273d1c
18
configure.ac
18
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user