From: Willy Tarreau Date: Fri, 3 Jul 2020 16:56:33 +0000 (+0200) Subject: BUILD: makefile: disable threads by default on OpenBSD X-Git-Tag: v2.2-dev12~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45e83e8c5676afc6e0a48726b46b7e8fd20e8dd0;p=thirdparty%2Fhaproxy.git BUILD: makefile: disable threads by default on OpenBSD As reported by Ilya in issue #725, building with threads on OpenBSD is broken with gcc: include/haproxy/tinfo.h:30: error: thread-local storage not supported for this target Better stay safe and disable it. Clang seems to support (or emulate) thread-local, at least it builds. Those willing to experiment can easily pass USE_THREAD=1. --- diff --git a/Makefile b/Makefile index 04bf8a590c..7582a88f69 100644 --- a/Makefile +++ b/Makefile @@ -378,7 +378,7 @@ endif # OpenBSD 5.7 and above ifeq ($(TARGET),openbsd) set_target_defaults = $(call default_opts, \ - USE_POLL USE_TPROXY USE_THREAD USE_KQUEUE USE_ACCEPT4) + USE_POLL USE_TPROXY USE_KQUEUE USE_ACCEPT4) endif # NetBSD