From: Willy Tarreau Date: Fri, 14 Jun 2019 14:57:42 +0000 (+0200) Subject: BUILD: makefile: enable TFO on linux platforms X-Git-Tag: v2.0.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26181e74b3c1f186e3db34619939f8831dff8f7;p=thirdparty%2Fhaproxy.git 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. --- 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