From 59f8d06d3398a126b7bc4a737f22abcfc267367b Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Wed, 23 Jun 2021 23:16:31 +0000 Subject: [PATCH] ITS#8874 - Don't try and link in libcom_err with libfetch on FreeBSD This was changed for FreeBSD back in the year 2000. --- build/openldap.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/openldap.m4 b/build/openldap.m4 index e467ccb787..3806014321 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -613,7 +613,7 @@ dnl ==================================================================== dnl Look for fetch(3) AC_DEFUN([OL_LIB_FETCH], [ol_LIBS=$LIBS -LIBS="-lfetch -lcom_err $LIBS" +LIBS="-lfetch $LIBS" AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #ifdef HAVE_SYS_PARAM_H @@ -623,7 +623,7 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[ #include ]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])]) LIBS=$ol_LIBS if test $ol_cv_lib_fetch != no ; then - ol_link_fetch="-lfetch -lcom_err" + ol_link_fetch="-lfetch" AC_DEFINE(HAVE_FETCH,1, [define if you actually have FreeBSD fetch(3)]) fi