diff --git a/configure.in b/configure.in index 9067ee89a2..9b8b8552af 100644 --- a/configure.in +++ b/configure.in @@ -691,7 +691,7 @@ if test $ol_enable_perl != no ; then else PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`" - PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /'`" + PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`" if test x"$ol_with_perl_module" = "xstatic" ; then SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"