linux: Disable compiler TLS in libxml2 (fixes #3616)

This commit is contained in:
Marshall Greenblatt
2023-12-06 12:27:08 -05:00
parent 0dd7dca229
commit be734efe68
2 changed files with 18 additions and 0 deletions

View File

@ -694,5 +694,10 @@ patches = [
# chrome: win: Fix loading of default app icon. # chrome: win: Fix loading of default app icon.
# https://github.com/chromiumembedded/cef/issues/3606 # https://github.com/chromiumembedded/cef/issues/3606
'name': 'win_app_icon_3606' 'name': 'win_app_icon_3606'
},
{
# linux: Disable compiler TLS in libxml2.
# https://github.com/chromiumembedded/cef/issues/3616
'name': 'linux_libxml_tls_3616'
} }
] ]

View File

@ -0,0 +1,13 @@
diff --git third_party/libxml/linux/config.h third_party/libxml/linux/config.h
index c064071ce1545..65110af9a78f5 100644
--- third_party/libxml/linux/config.h
+++ third_party/libxml/linux/config.h
@@ -171,7 +171,7 @@
/* #undef XML_SOCKLEN_T */
/* TLS specifier */
-#define XML_THREAD_LOCAL _Thread_local
+/* #undef XML_THREAD_LOCAL */
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the