Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 1 | From e4d8016d0dc56b02e22898d83aad9f80a94d1c3c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 20 Oct 2021 16:21:14 -0700 |
| 4 | Subject: [PATCH] mozjs: Fix musl miscompiles with HAVE_THREAD_TLS_KEYWORD |
| 5 | |
| 6 | Upstream: No |
| 7 | Reason: mozjs60 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD: |
| 8 | https://github.com/void-linux/void-packages/issues/2598 |
| 9 | |
| 10 | --- |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | js/src/old-configure.in | 3 +++ |
| 14 | 1 file changed, 3 insertions(+) |
| 15 | |
| 16 | diff --git a/js/src/old-configure.in b/js/src/old-configure.in |
| 17 | index cabd72a2b6..0f08d91cbf 100644 |
| 18 | --- a/js/src/old-configure.in |
| 19 | +++ b/js/src/old-configure.in |
| 20 | @@ -807,6 +807,9 @@ if test "$ac_cv_thread_keyword" = yes; then |
| 21 | *-android*|*-linuxandroid*) |
| 22 | : |
| 23 | ;; |
| 24 | + *-musl*) |
| 25 | + : |
| 26 | + ;; |
| 27 | *) |
| 28 | AC_DEFINE(HAVE_THREAD_TLS_KEYWORD) |
| 29 | ;; |