Try to allow Qt5 to get compiled on SPARC: native atomics implementation

was dropped in Qt 5.2, but Qt could use GCC ones - why not?

Initial report from landry@
This commit is contained in:
zhuk 2015-01-24 22:09:40 +00:00
parent 01ae7e1736
commit 0652476dd9
2 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.21 2015/01/21 20:49:50 zhuk Exp $
# $OpenBSD: Makefile,v 1.22 2015/01/24 22:09:40 zhuk Exp $
SHARED_ONLY = Yes
ONLY_FOR_ARCHS = ${GCC4_ARCHS}
@ -24,7 +24,7 @@ PKGNAME-psql = qt5-postgresql-${VERSION}
PKGNAME-sqlite2 = qt5-sqlite2-${VERSION}
PKGNAME-tds = qt5-tds-${VERSION}
REVISION-main = 9
REVISION-main = 10
REVISION-mysql = 0
REVISION-psql = 0
REVISION-sqlite2 = 0

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-qtbase_src_corelib_thread_qbasicatomic_h,v 1.1 2015/01/24 22:09:40 zhuk Exp $
Allow Qt 5.2+ to compile on SPARC.
--- qtbase/src/corelib/thread/qbasicatomic.h.ports.orig Sun Jan 25 01:03:17 2015
+++ qtbase/src/corelib/thread/qbasicatomic.h Sun Jan 25 01:03:46 2015
@@ -62,8 +62,6 @@
# include "QtCore/qatomic_ia64.h"
#elif defined(Q_PROCESSOR_MIPS)
# include "QtCore/qatomic_mips.h"
-#elif defined(Q_PROCESSOR_SPARC)
-# include "QtCore/qatomic_sparc.h"
#elif defined(Q_PROCESSOR_X86)
# include <QtCore/qatomic_x86.h>