| 1 |
From fb618bd27ac7a9fd32973320016c7ff28dd2f60e Mon Sep 17 00:00:00 2001 |
| 2 |
From: Mike Dalessio <[email protected]> |
| 3 |
Date: Fri, 5 May 2023 10:10:43 -0400 |
| 4 |
Subject: [PATCH] rip out libxml2's libc_single_threaded support |
| 5 |
|
| 6 |
This is a preventative measure because this feature relies on a glibc |
| 7 |
version we can't realistically require of users today. We're not yet |
| 8 |
precompiling on a system with a modern-enough glibc to make this an |
| 9 |
actual problem, but I'm doing it while all of this context is fresh. |
| 10 |
--- |
| 11 |
threads.c | 3 ++- |
| 12 |
1 file changed, 2 insertions(+), 1 deletion(-) |
| 13 |
|
| 14 |
diff --git a/threads.c b/threads.c |
| 15 |
index 60dbce4c..eb1c12e5 100644 |
| 16 |
--- a/threads.c |
| 17 |
+++ b/threads.c |
| 18 |
@@ -27,7 +27,8 @@ |
| 19 |
|
| 20 |
#if defined(HAVE_POSIX_THREADS) && \ |
| 21 |
defined(__GLIBC__) && \ |
| 22 |
- __GLIBC__ * 100 + __GLIBC_MINOR__ >= 234 |
| 23 |
+ __GLIBC__ * 100 + __GLIBC_MINOR__ >= 234 && \ |
| 24 |
+ !defined(NOKOGIRI_PRECOMPILED_LIBRARIES) |
| 25 |
|
| 26 |
/* |
| 27 |
* The modern way available since glibc 2.32. |
| 28 |
-- |
| 29 |
2.40.1 |
| 30 |
|