]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused libbsd (#1037)
authorguijan <guilherme.janczak@yandex.com>
Sat, 30 Apr 2022 10:33:54 +0000 (10:33 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 30 Apr 2022 10:34:04 +0000 (10:34 +0000)
Squid links against libbsd, but doesn't actually use any of its
functions.

I've build tested this on Alpine Linux.

configure.ac

index d097afe0e7b52a713b20429a728fa593c2b7527b..60fcfa8f752c402838508189111a90b29893c91e 100644 (file)
@@ -2931,7 +2931,6 @@ AC_SEARCH_LIBS([res_init],[resolv])
 AC_SEARCH_LIBS([__res_search],[resolv])
 AC_SEARCH_LIBS([bind],[socket])
 AC_SEARCH_LIBS([opcom_stack_trace],[opcom_stack])
-AC_SEARCH_LIBS([strlcpy], [bsd])
 AC_SEARCH_LIBS([yp_match], [nsl nss_nis nss_nisplus])
 dnl Check for Winsock only on MinGW, on Cygwin we must use emulated BSD socket API
 if test "x$squid_host_os" = "xmingw" ; then
@@ -3054,16 +3053,8 @@ case "$host" in
     AC_MSG_NOTICE([Removing -lnsl for IRIX...])
     LIBS=`echo $LIBS | sed -e s/-lnsl//`
     ac_cv_lib_nsl_main=no
-    AC_MSG_NOTICE([Removing -lbsd for IRIX...])
-    LIBS=`echo $LIBS | sed -e s/-lbsd//`
   ;;
-dnl From: c0032033@ws.rz.tu-bs.de (Joerg Schumacher)
-dnl Date: Thu, 17 Oct 1996 04:09:30 +0200
-dnl Please change your configure script.  AIX doesn't need -lbsd.
   *-ibm-aix*)
-    AC_MSG_NOTICE([Removing -lbsd for AIX...])
-    LIBS=`echo $LIBS | sed -e s/-lbsd//`
-
     SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_rtti],[-rtti],[[
 #include <assert.h>
 #ifndef NULL