]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8874 - Don't try and link in libcom_err with libfetch on FreeBSD
authorQuanah Gibson-Mount <quanah@openldap.org>
Wed, 23 Jun 2021 23:16:31 +0000 (23:16 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Jun 2021 15:01:51 +0000 (15:01 +0000)
This was changed for FreeBSD back in the year 2000.

build/openldap.m4

index e467ccb787c7a34aeab956cf0ed7254096551bcb..3806014321600c86e518ba72a42a189c4e47a61a 100644 (file)
@@ -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 <fetch.h>]], [[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