From a26181e74b3c1f186e3db34619939f8831dff8f7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 14 Jun 2019 16:57:42 +0200 Subject: [PATCH] BUILD: makefile: enable TFO on linux platforms TCP Fast Open is supported on all supported Linux kernels and on all kernels shipped in supported distros, except the older 2.6.32 that comes with RHEL6. However the option is harmless, will not prevent from building and smoothly falls back even if forcefully enabled, so it makes sense to enable it by default. It's still possible to pass "USE_TFO=" to force it disabled if really desired. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4ec9bf560..5ce1a87ffb 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,7 @@ ifeq ($(TARGET),linux-glibc) set_target_defaults = $(call default_opts, \ USE_POLL USE_TPROXY USE_LIBCRYPT USE_DL USE_RT USE_CRYPT_H USE_NETFILTER \ USE_CPU_AFFINITY USE_THREAD USE_EPOLL USE_FUTEX USE_LINUX_TPROXY \ - USE_ACCEPT4 USE_LINUX_SPLICE USE_PRCTL USE_THREAD_DUMP USE_NS) + USE_ACCEPT4 USE_LINUX_SPLICE USE_PRCTL USE_THREAD_DUMP USE_NS USE_TFO) endif # Solaris 8 and above