]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: Update feature flags for OpenBSD
authorBrad Smith <brad@comstyle.com>
Sun, 27 Sep 2020 03:05:25 +0000 (23:05 -0400)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2020 19:48:18 +0000 (21:48 +0200)
Update the OpenBSD target features being enabled.

I updated the list of features after noticing
"BUILD: makefile: disable threads by default on OpenBSD".

The Makefile utilizing gcc(1) by default resulted in utilizing
our legacy and obsolete compiler (GCC 4.2.1) instead of the
proper system compiler (Clang), which does support TLS. With
"BUILD: makefile: change default value of CC from gcc to cc"
that is resolved.

Makefile

index 934ca1666aa3cf46d3fbc541525fade852530e27..197126db5071c5e15f7ca8cd7ff09e72b8aa6c92 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -377,10 +377,11 @@ ifeq ($(TARGET),osx)
   EXPORT_SYMBOL  = -export_dynamic
 endif
 
-# OpenBSD 5.7 and above
+# OpenBSD 6.3 and above
 ifeq ($(TARGET),openbsd)
   set_target_defaults = $(call default_opts, \
-    USE_POLL USE_TPROXY USE_KQUEUE USE_ACCEPT4)
+    USE_POLL USE_TPROXY USE_THREAD USE_KQUEUE USE_ACCEPT4 USE_CLOSEFROM   \
+    USE_GETADDRINFO)
 endif
 
 # NetBSD