]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: enable getaddrinfo on the linux-glibc target
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Jun 2019 16:33:56 +0000 (18:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Jun 2019 16:03:48 +0000 (18:03 +0200)
getaddrinfo() has been available since glibc 2.3.3 or so and is generally
enabled by distro packagers. The main reason for not enabling it on Linux
in the past is that it was known broken on some libc alternatives. It's
the right moment to enable it by default with glibc.

Makefile

index 5ce1a87ffb930835754e94b4729b7404b5165c84..a9b21b97c03f61a8cf86e9ee6eb73db45c88a27e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -323,7 +323,8 @@ 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_TFO)
+    USE_ACCEPT4 USE_LINUX_SPLICE USE_PRCTL USE_THREAD_DUMP USE_NS USE_TFO     \
+    USE_GETADDRINFO)
 endif
 
 # Solaris 8 and above