From 90c9d784477b5386e7b1e4584e2c5e31313b183b Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 26 Sep 2020 23:05:25 -0400 Subject: [PATCH] BUILD: makefile: Update feature flags for OpenBSD 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 934ca1666..197126db5 100644 --- 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