linking dlmalloc on FreeBSD

From: Duane Wessels <wessels@dont-contact.us>
Date: Mon, 6 Nov 2000 11:16:19 -0700 (MST)

I found that using --enable-dlmalloc on FreeBSD is not sufficient to
make squid link with the dlmalloc code. There is some dependency with
the order of the libraries. I had to make this change to use dlmalloc:

Index: Makefile.in
===================================================================
RCS file: /server/cvs-server/squid/squid/src/Makefile.in,v
retrieving revision 1.195
diff -u -r1.195 Makefile.in
--- Makefile.in 2000/10/20 23:50:59 1.195
+++ Makefile.in 2000/11/06 18:13:59
@@ -76,7 +76,7 @@
 INCLUDE = -I. -I../include -I$(top_srcdir)/include
 CFLAGS = $(AC_CFLAGS) $(INCLUDE) $(DEFINES)
 SQUID_LIBS = -L../lib $(CRYPTLIB) $(REGEXLIB) @SQUID_PTHREAD_LIB@ \
- $(SNMPLIB) $(MALLOCLIB) -lmiscutil $(XTRA_LIBS)
+ $(SNMPLIB) -lmiscutil $(XTRA_LIBS) $(MALLOCLIB)
 CLIENT_LIBS = -L../lib -lmiscutil $(XTRA_LIBS)
 DNSSERVER_LIBS = -L../lib -lmiscutil $(XTRA_LIBS)
 PINGER_LIBS = -L../lib -lmiscutil $(XTRA_LIBS)

Can anyone forsee problems with this change?
Received on Mon Nov 06 2000 - 11:16:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:56 MST