]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From: Stewart Forster <slf@connect.com.au>
authorwessels <>
Wed, 31 Dec 1997 12:06:22 +0000 (12:06 +0000)
committerwessels <>
Wed, 31 Dec 1997 12:06:22 +0000 (12:06 +0000)
In the default makefile, there is no mention of needing to include
-lpthread for Solaris (I don't know about other OS's).  This WILL
cause squid to fail under Solaris, and the standard C library has
non-reentrant routines that will die unless the appropriate thread
library is included.

configure.in
src/Makefile.in

index 621d285f2353a6cc1eee340340e56ae49f74680b..f60bd02e03571c6bfd27c6d1cc925660e83ef855 100644 (file)
@@ -3,13 +3,13 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.85 1997/12/30 02:49:41 wessels Exp $
+dnl  $Id: configure.in,v 1.86 1997/12/31 05:06:22 wessels Exp $
 dnl
 dnl
 dnl
 AC_INIT(src/main.c)
 AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.85 $)dnl
+AC_REVISION($Revision: 1.86 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AC_CONFIG_AUX_DIR(aux)
 
@@ -268,6 +268,11 @@ dnl We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
 AC_CHECK_LIB(crypt, crypt, [CRYPTLIB="-lcrypt"])
 AC_SUBST(CRYPTLIB)
 
+dnl Check for libcrypt
+dnl We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
+AC_CHECK_LIB(pthread, main, [PTHREADLIB="-lpthread"])
+AC_SUBST(PTHREADLIB)
+
 dnl System-specific library modifications
 dnl
 case "$host" in
index 128822fe175e443a85f00a0a347a3211f64a708e..8a663d0974704ca0e664bc3a1801694cae263403 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.in,v 1.109 1997/12/31 04:11:56 wessels Exp $
+#  $Id: Makefile.in,v 1.110 1997/12/31 05:06:23 wessels Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -48,6 +48,7 @@ LN_S          = @LN_S@
 PERL            = @PERL@
 CRYPTLIB       = @CRYPTLIB@
 REGEXLIB       = @REGEXLIB@
+PTHREADLIB     = @PTHREADLIB@
 AC_CFLAGS      = @CFLAGS@
 LDFLAGS                = @LDFLAGS@
 XTRA_LIBS      = @XTRA_LIBS@
@@ -59,7 +60,8 @@ SHELL         = /bin/sh
 
 INCLUDE                = -I. -I../include -I$(srcdir)/../include
 CFLAGS                 = $(AC_CFLAGS) $(INCLUDE) $(DEFINES)
-SQUID_LIBS     = -L../lib $(CRYPTLIB) $(REGEXLIB) -lmiscutil $(XTRA_LIBS)
+SQUID_LIBS     = -L../lib $(CRYPTLIB) $(REGEXLIB) $(PTHREADLIB) \
+                 -lmiscutil $(XTRA_LIBS)
 CLIENT_LIBS    = -L../lib -lmiscutil $(XTRA_LIBS)
 DNSSERVER_LIBS = -L../lib -lmiscutil $(XTRA_LIBS)
 PINGER_LIBS    = -L../lib -lmiscutil $(XTRA_LIBS)