]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Enable the compilation of QUIC modules.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 23 Nov 2020 14:53:17 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Dec 2020 10:57:26 +0000 (11:57 +0100)
Adds the QUIC C object files to the list to compile to support QUIC protocol.
USE_QUIC compilation option must be used for that.

Makefile

index 6bfbbf92dc4e767239e54f23d0f7218b70244f8f..0ea3ef6b83aeec6a8a12afa73d7c7dbbc8d6a193 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -301,7 +301,8 @@ use_opts = USE_EPOLL USE_KQUEUE USE_NETFILTER                                 \
            USE_GETADDRINFO USE_OPENSSL USE_LUA USE_FUTEX USE_ACCEPT4          \
            USE_CLOSEFROM USE_ZLIB USE_SLZ USE_CPU_AFFINITY USE_TFO USE_NS     \
            USE_DL USE_RT USE_DEVICEATLAS USE_51DEGREES USE_WURFL USE_SYSTEMD  \
-           USE_OBSOLETE_LINKER USE_PRCTL USE_THREAD_DUMP USE_EVPORTS USE_OT
+           USE_OBSOLETE_LINKER USE_PRCTL USE_THREAD_DUMP USE_EVPORTS USE_OT   \
+           USE_QUIC
 
 #### Target system options
 # Depending on the target platform, some options are set, as well as some
@@ -568,6 +569,10 @@ OPTIONS_LDFLAGS += -ldl
 endif
 OPTIONS_OBJS  += src/ssl_sample.o src/ssl_sock.o src/ssl_crtlist.o src/ssl_ckch.o src/ssl_utils.o src/cfgparse-ssl.o
 endif
+ifneq ($(USE_QUIC),)
+OPTIONS_OBJS += src/quic_sock.o src/proto_quic.o src/xprt_quic.o src/quic_tls.o \
+                src/quic_frame.o src/quic_cc.o src/quic_cc_newreno.o
+endif
 
 # The private cache option affect the way the shctx is built
 ifeq ($(USE_PRIVATE_CACHE),)