aboutsummarylogtreecommitdiffstats
path: root/0007-Fix-too-many-sections-assemler-error-in-OpenGL-facto.patch
blob: 558f13f13dcc7bec4446d465e58e6f6c65ef3c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 73e031e4308c76638e67f7e167df47d3988c7c14 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 18 Sep 2016 13:48:51 +0200
Subject: [PATCH 07/26] Fix too many sections assemler error in OpenGL factory

On x86_64 qopenglversionfunctionsfactory.o exceeds the
limit of 32768 sections.
Hence the assembler option -mbig-obj is required.
---
 src/gui/opengl/opengl.pri | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gui/opengl/opengl.pri b/src/gui/opengl/opengl.pri
index b13f258fda..8a9093f4ca 100644
--- a/src/gui/opengl/opengl.pri
+++ b/src/gui/opengl/opengl.pri
@@ -4,6 +4,7 @@ contains(QT_CONFIG, opengl):CONFIG += opengl
 contains(QT_CONFIG, opengles2):CONFIG += opengles2
 
 contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles2) {
+    mingw:QMAKE_CXXFLAGS+="-Wa,-mbig-obj"
 
     HEADERS += opengl/qopengl.h \
                opengl/qopengl_p.h \
-- 
2.11.0