BUILD: makefile: disable threads by default on OpenBSD
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Jul 2020 16:56:33 +0000 (18:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Jul 2020 16:56:33 +0000 (18:56 +0200)
commit45e83e8c5676afc6e0a48726b46b7e8fd20e8dd0
tree4e9b1be801529a49cc30125d963942c4745189da
parentf3f4aa0266809c729ca98171a34de8c9bdd2c9f3
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.
Makefile