diff --git a/configure.in b/configure.in index d83768763f..f2ad7a8923 100644 --- a/configure.in +++ b/configure.in @@ -648,7 +648,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" else