Skip to content

Commit 20a3092

Browse files
committed
doc: note why we can't use thread_local with glibc back compat
1 parent d656311 commit 20a3092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,9 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
861861
]
862862
)
863863

864+
dnl thread_local is currently disabled when building with glibc back compat.
865+
dnl Our minimum supported glibc is 2.17, however support for thread_local
866+
dnl did not arrive in glibc until 2.18.
864867
if test "x$use_thread_local" = xyes || { test "x$use_thread_local" = xauto && test "x$use_glibc_compat" = xno; }; then
865868
TEMP_LDFLAGS="$LDFLAGS"
866869
LDFLAGS="$TEMP_LDFLAGS $PTHREAD_CFLAGS"

0 commit comments

Comments
 (0)