summarylogtreecommitdiffstats
path: root/0003-Fix-too-many-sections-assemler-error-in-OpenGL-facto.patch
blob: 4e63f417299ba874cdf7cbc2b8111f74d60e42c0 (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
28
29
From 493c7f41180718b024b773cca1c23a4b0c7a8213 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 18 Sep 2016 13:48:51 +0200
Subject: [PATCH 03/32] 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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gui/opengl/opengl.pri b/src/gui/opengl/opengl.pri
index 24758afdeb..aa04b4a672 100644
--- a/src/gui/opengl/opengl.pri
+++ b/src/gui/opengl/opengl.pri
@@ -3,7 +3,8 @@
 qtConfig(opengl): CONFIG += opengl
 qtConfig(opengles2): CONFIG += opengles2
 
-qtConfig(opengl) {
+qtConfig(opengl)|qtConfig(opengles2) {
+    mingw:QMAKE_CXXFLAGS+="-Wa,-mbig-obj"
 
     HEADERS += opengl/qopengl.h \
                opengl/qopengl_p.h \
-- 
2.24.0