-
-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(truffle): patch posix thread detection support
because the weak symbols won't work with truffleruby, for more context see: - oracle/truffleruby#3031
- Loading branch information
1 parent
cfb6b99
commit 4d5486d
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
patches/libxml2/0011-patch-posix-thread-detection-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 8cc1e13856ca509e02175552fc0f142eef46a129 Mon Sep 17 00:00:00 2001 | ||
From: Mike Dalessio <[email protected]> | ||
Date: Tue, 2 May 2023 15:39:50 -0400 | ||
Subject: [PATCH] patch posix thread detection support | ||
|
||
because the weak symbols won't work with truffleruby, for more context | ||
see: | ||
|
||
- https://github.com/oracle/truffleruby/issues/3031 | ||
--- | ||
threads.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/threads.c b/threads.c | ||
index 56a917e6..c496cfbd 100644 | ||
--- a/threads.c | ||
+++ b/threads.c | ||
@@ -43,7 +43,7 @@ | ||
|
||
#elif defined(HAVE_POSIX_THREADS) && \ | ||
defined(__GLIBC__) && \ | ||
- defined(__GNUC__) | ||
+ defined(__GNUC__) && false | ||
|
||
/* | ||
* The traditional way to check for single-threaded applications with | ||
-- | ||
2.40.1 | ||
|