aboutsummaryrefslogtreecommitdiffstats
path: root/main/qt/gcc-6.2.1-workaround.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-10-17 13:33:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-17 13:33:32 +0000
commit88ec317f89795db60e6ba9f6fbcb570a88174d03 (patch)
treea31a86b6ffc9e6f719a1b512d61ffcbfa6ce0fa1 /main/qt/gcc-6.2.1-workaround.patch
parent9ef320d788deb38a2727e2ee4ff6629a181f5329 (diff)
downloadaports-88ec317f89795db60e6ba9f6fbcb570a88174d03.tar.bz2
aports-88ec317f89795db60e6ba9f6fbcb570a88174d03.tar.xz
main/qt: workaround for gcc bug
remove -O2 for declarative to work around a bug in gcc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78004
Diffstat (limited to 'main/qt/gcc-6.2.1-workaround.patch')
-rw-r--r--main/qt/gcc-6.2.1-workaround.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/qt/gcc-6.2.1-workaround.patch b/main/qt/gcc-6.2.1-workaround.patch
new file mode 100644
index 0000000000..b3ec25c90b
--- /dev/null
+++ b/main/qt/gcc-6.2.1-workaround.patch
@@ -0,0 +1,15 @@
+This is a workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78004
+
+diff --git a/src/declarative/declarative.pro b/src/declarative/declarative.pro
+index 5bf4e01..d1c56ae 100644
+--- a/src/declarative/declarative.pro
++++ b/src/declarative/declarative.pro
+@@ -4,7 +4,7 @@ QT = core gui script network
+ contains(QT_CONFIG, svg): QT += svg
+ DEFINES += QT_BUILD_DECLARATIVE_LIB QT_NO_URL_CAST_FROM_STRING
+ win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000
+-solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
++QMAKE_CXXFLAGS_RELEASE -= -O2
+
+ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
+