$OpenBSD: patch-configure,v 1.2 2018/11/02 16:41:29 sthen Exp $

Index: configure
--- configure.orig
+++ configure
@@ -19142,7 +19142,7 @@ $as_echo_n "checking for thread-local storage... " >&6
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
-static __thread int x ;
+__thread int x ;
 int main () { x = 123; return x; }
 
 _ACEOF
