From aec6b0075863bff181d1d3dfdf1399264de01f67 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 15 Mar 2022 13:07:02 +0100 Subject: [PATCH] Disable init prioritization in QNX This fixes issue with non working QHash when loading QML plugins in QNX. Change-Id: I55c9edc58aa27cff694603e6281c980e1fedbeba Taks-number: QTBUG-101341 Reviewed-by: Thiago Macieira --- src/corelib/global/qglobal_p.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/global/qglobal_p.h b/src/corelib/global/qglobal_p.h index f49a66df83..46b0a80ba6 100644 --- a/src/corelib/global/qglobal_p.h +++ b/src/corelib/global/qglobal_p.h @@ -71,6 +71,9 @@ # define Q_DECL_INIT_PRIORITY(nn) \ __pragma(warning(disable: 4075)) \ __pragma(init_seg(".CRT$XCK" QT_STRINGIFY(nn))) Q_DECL_UNUSED +#elif defined(Q_OS_QNX) +// init_priority fails on QNX and we didn't bother investigating why +# define QT_SUPPORTS_INIT_PRIORITY 0 #elif defined(Q_OS_WIN) || defined(Q_OF_ELF) # define QT_SUPPORTS_INIT_PRIORITY 1 // priorities 0 to 1000 are reserved to the runtime;