Skip to content

Commit

Permalink
qt5-qtbase: avoid init_priority
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez committed Jun 2, 2018
1 parent c844925 commit 5a7a91f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aqua/qt5/Portfile
Expand Up @@ -147,7 +147,7 @@ array set modules {
{"Qt Core" "Qt GUI" "Qt Network" "Qt SQL" "Qt Test" "Qt Widgets" "Qt Concurrent" "Qt D-Bus" "Qt OpenGL" "Qt Platform Headers" "Qt Print Support" "Qt XML"}
""
"variant overrides: "
"revision 0"
"revision 1"
"License: "
}
qtcanvas3d {
Expand Down Expand Up @@ -774,6 +774,9 @@ foreach {module module_info} [array get modules] {
mkspecs/features/mac/rez.prf
}

# see https://codereview.qt-project.org/#/c/221071/
patchfiles-append patch-init_priority.diff

#-----------------------------------------------------------------------------
# qtbase is used for:
# 1) building qtbase
Expand Down
11 changes: 11 additions & 0 deletions aqua/qt5/files/patch-init_priority.diff
@@ -0,0 +1,11 @@
--- src/corelib/global/qglobal.h.orig 2018-02-08 11:24:48.000000000 -0700
+++ src/corelib/global/qglobal.h 2018-05-18 20:48:57.000000000 -0700
@@ -508,7 +508,7 @@
# define Q_ALWAYS_INLINE inline
#endif

-#ifdef Q_CC_GNU
+#if defined(Q_CC_GNU) && defined(Q_OS_WIN)
# define QT_INIT_METAOBJECT __attribute__((init_priority(101)))
#else
# define QT_INIT_METAOBJECT

0 comments on commit 5a7a91f

Please sign in to comment.