|
@@ -5,7 +5,7 @@
|
|
|
################################################################################
|
|
|
|
|
|
SQUID_VERSION_MAJOR = 3.5
|
|
|
-SQUID_VERSION = $(SQUID_VERSION_MAJOR).2
|
|
|
+SQUID_VERSION = $(SQUID_VERSION_MAJOR).3
|
|
|
SQUID_SOURCE = squid-$(SQUID_VERSION).tar.xz
|
|
|
SQUID_SITE = http://www.squid-cache.org/Versions/v3/$(SQUID_VERSION_MAJOR)
|
|
|
SQUID_LICENSE = GPLv2+
|
|
@@ -42,6 +42,17 @@ SQUID_CONF_OPTS = \
|
|
|
--enable-icap-client \
|
|
|
--with-default-user=squid
|
|
|
|
|
|
+# Atomics in Squid use __sync_add_and_fetch_8, i.e a 64 bits atomic
|
|
|
+# operation. This atomic intrinsic is only available natively on
|
|
|
+# 64-bit architectures that have atomic operations. On 32-bit
|
|
|
+# architectures, it would be provided by libatomic, but Buildroot
|
|
|
+# typically doesn't provide it.
|
|
|
+ifeq ($(BR2_ARCH_HAS_ATOMICS)$(BR2_ARCH_IS_64),yy)
|
|
|
+ SQUID_CONF_ENV += squid_cv_gnu_atomics=yes
|
|
|
+else
|
|
|
+ SQUID_CONF_ENV += squid_cv_gnu_atomics=no
|
|
|
+endif
|
|
|
+
|
|
|
# On uClibc librt needs libpthread
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy)
|
|
|
SQUID_CONF_ENV += ac_cv_search_shm_open="-lrt -lpthread"
|