disable optimization which breaks with gcc 3.3.6

This commit is contained in:
espie 2007-04-03 21:05:51 +00:00
parent b1f4fffdd4
commit 025bbaf18e
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2007/03/31 23:10:18 espie Exp $ # $OpenBSD: Makefile,v 1.36 2007/04/03 21:05:51 espie Exp $
COMMENT-main= "C++ X11 GUI toolkit" COMMENT-main= "C++ X11 GUI toolkit"
COMMENT-examples= "examples for qt4" COMMENT-examples= "examples for qt4"
@ -14,7 +14,7 @@ PKGNAME-postgresql= qt4-postgresql-${VERSION}
PKGNAME-examples= qt4-examples-${VERSION} PKGNAME-examples= qt4-examples-${VERSION}
PKGNAME-sqlite2= qt4-sqlite2-${VERSION} PKGNAME-sqlite2= qt4-sqlite2-${VERSION}
PKGNAME-sqlite= qt4-sqlite-${VERSION} PKGNAME-sqlite= qt4-sqlite-${VERSION}
PKGNAME-main= qt4-${VERSION}p0 PKGNAME-main= qt4-${VERSION}p1
FULLPKGNAME-html= qt4-html-${VERSION} FULLPKGNAME-html= qt4-html-${VERSION}
SHARED_LIBS= Qt3Support 7.0 \ SHARED_LIBS= Qt3Support 7.0 \
QtCore 6.2 \ QtCore 6.2 \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_corelib_global_qglobal_h,v 1.1 2007/04/03 21:05:51 espie Exp $
--- src/corelib/global/qglobal.h.orig Tue Apr 3 23:03:33 2007
+++ src/corelib/global/qglobal.h Tue Apr 3 23:06:04 2007
@@ -1678,7 +1678,7 @@ typedef uint Flags;
#endif /* Q_NO_TYPESAFE_FLAGS */
-#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL)
+#if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_OS_OPENBSD)
/* make use of typeof-extension */
template <typename T>
class QForeachContainer {