<div dir="ltr"><div>This is the patch against 5.6 branch that fixes the QMutex problem:<br><pre>diff --git a/src/corelib/thread/qmutex.<wbr>cpp b/src/corelib/thread/qmutex.<wbr>cpp
index fa3bb08..db8e33e 100644
--- a/src/corelib/thread/qmutex.<wbr>cpp
+++ b/src/corelib/thread/qmutex.<wbr>cpp
@@ -571,7 +571,7 @@ const int FreeListConstants::Sizes[<wbr>FreeListConstants::BlockCount] = {
typedef QFreeList<QMutexPrivate, FreeListConstants> FreeList;
// We cannot use Q_GLOBAL_STATIC because it uses QMutex
-#if defined(Q_COMPILER_THREADSAFE_<wbr>STATICS)
+#if defined(Q_COMPILER_THREADSAFE_<wbr>STATICS) && !defined(Q_OS_FREEBSD)
FreeList *freelist()
{
static FreeList list;</pre><br>There was another proposed patch (which also worked fine), which involved moving<br><br><pre> static FreeList list;<br><br></pre>line out of the freelist() function to the global scope.<br></div></div>