summaryrefslogtreecommitdiffstats
path: root/main/squid/cf_gen-pthread.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/squid/cf_gen-pthread.patch')
-rw-r--r--main/squid/cf_gen-pthread.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/squid/cf_gen-pthread.patch b/main/squid/cf_gen-pthread.patch
new file mode 100644
index 000000000..67387a1a9
--- /dev/null
+++ b/main/squid/cf_gen-pthread.patch
@@ -0,0 +1,20 @@
+--- ./src/Makefile.in.orig
++++ ./src/Makefile.in
+@@ -1963,7 +1963,7 @@
+ noinst_LTLIBRARIES = libsquid.la
+ cf_gen_SOURCES = cf_gen.cc
+ nodist_cf_gen_HEADER = cf_gen_defines.cci
+-cf_gen_LDADD =
++cf_gen_LDADD = -lpthread
+ ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
+ DISKIO_SOURCE = \
+ DiskIO/DiskIOModule.cc \
+@@ -5796,7 +5796,7 @@
+
+ # cf_gen builds the configuration files.
+ cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
+- $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
++ $(HOSTCXX) $(cf_gen_LDADD) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
+
+ # squid.conf.default is built by cf_gen when making cf_parser.cci
+ squid.conf.default squid.conf.documented: cf_parser.cci