summaryrefslogtreecommitdiff
path: root/extra/js78/patches/fix-musl-build.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-10 11:59:16 +0000
committerdavidovski <david@davidovski.xyz>2022-03-10 11:59:16 +0000
commitbb499959d88da1b3937c23b5405089c907188a81 (patch)
treed9ddba6d0c8f1152c3919067a52250c6bf0759f9 /extra/js78/patches/fix-musl-build.patch
parent3602ce227f784f1c6233ef6ad3cd8f5ccad28e66 (diff)
added and patched broken packages
Diffstat (limited to 'extra/js78/patches/fix-musl-build.patch')
-rw-r--r--extra/js78/patches/fix-musl-build.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/js78/patches/fix-musl-build.patch b/extra/js78/patches/fix-musl-build.patch
new file mode 100644
index 0000000..af39467
--- /dev/null
+++ b/extra/js78/patches/fix-musl-build.patch
@@ -0,0 +1,16 @@
+Upstream: No
+Reason: mozjs60 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD:
+https://github.com/void-linux/void-packages/issues/2598
+diff --git a/js/src/old-configure.in b/js/src/old-configure.in
+--- a/js/src/old-configure.in
++++ b/js/src/old-configure.in
+@@ -1272,6 +1272,9 @@
+ *-android*|*-linuxandroid*)
+ :
+ ;;
++ *-musl*)
++ :
++ ;;
+ *)
+ AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
+ ;;