2024-08-21 16:55:12 +02:00
|
|
|
From 793c4c0d728024139083660a7f382f6d95853efe Mon Sep 17 00:00:00 2001
|
2024-05-03 23:48:50 +02:00
|
|
|
From: Christophe Marin <christophe@krop.fr>
|
|
|
|
Date: Sun, 6 Jun 2021 10:44:09 +0200
|
2024-08-21 16:55:12 +02:00
|
|
|
Subject: [PATCH] Use newer GCC on Leap.patch
|
2024-05-03 23:48:50 +02:00
|
|
|
|
|
|
|
The default compiler in Leap doesn't match the Qt requirements.
|
|
|
|
Use the latest compiler version available on Leap.
|
|
|
|
|
|
|
|
Change-Id: I0c4ad87af4dd60d12fa09366eb9910edafcc9c4c
|
|
|
|
---
|
|
|
|
mkspecs/common/g++-base.conf | 6 +++---
|
|
|
|
mkspecs/common/gcc-base.conf | 4 ++--
|
|
|
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/mkspecs/common/g++-base.conf b/mkspecs/common/g++-base.conf
|
2024-08-21 16:55:12 +02:00
|
|
|
index d392879..ddca128 100644
|
2024-05-03 23:48:50 +02:00
|
|
|
--- a/mkspecs/common/g++-base.conf
|
|
|
|
+++ b/mkspecs/common/g++-base.conf
|
|
|
|
@@ -8,14 +8,14 @@
|
|
|
|
# you can use the manual test in tests/manual/mkspecs.
|
|
|
|
#
|
|
|
|
|
|
|
|
-QMAKE_COMPILER = gcc
|
2024-08-21 16:55:12 +02:00
|
|
|
+QMAKE_COMPILER = gcc-13
|
2024-05-03 23:48:50 +02:00
|
|
|
|
|
|
|
-QMAKE_CC = $${CROSS_COMPILE}gcc
|
2024-08-21 16:55:12 +02:00
|
|
|
+QMAKE_CC = $${CROSS_COMPILE}gcc-13
|
2024-05-03 23:48:50 +02:00
|
|
|
|
|
|
|
QMAKE_LINK_C = $$QMAKE_CC
|
|
|
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
|
|
|
|
|
|
|
-QMAKE_CXX = $${CROSS_COMPILE}g++
|
2024-08-21 16:55:12 +02:00
|
|
|
+QMAKE_CXX = $${CROSS_COMPILE}g++-13
|
2024-05-03 23:48:50 +02:00
|
|
|
|
|
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
|
|
diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
|
2024-08-21 16:55:12 +02:00
|
|
|
index ae58326..33cc860 100644
|
2024-05-03 23:48:50 +02:00
|
|
|
--- a/mkspecs/common/gcc-base.conf
|
|
|
|
+++ b/mkspecs/common/gcc-base.conf
|
|
|
|
@@ -124,8 +124,8 @@ QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2
|
|
|
|
QMAKE_CFLAGS_ARCH_HASWELL = -march=core-avx2
|
|
|
|
|
|
|
|
# Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
|
|
|
|
-QMAKE_AR_LTCG = gcc-ar cqs
|
|
|
|
-QMAKE_NM_LTCG = gcc-nm -P
|
2024-08-21 16:55:12 +02:00
|
|
|
+QMAKE_AR_LTCG = gcc-ar-13 cqs
|
|
|
|
+QMAKE_NM_LTCG = gcc-nm-13 -P
|
2024-05-03 23:48:50 +02:00
|
|
|
QMAKE_RANLIB_LTCG = true # No need to run since gcc-ar has "s"
|
|
|
|
|
|
|
|
QMAKE_LINK_OBJECT_SCRIPT = object_script
|
|
|
|
--
|
2024-08-21 16:55:12 +02:00
|
|
|
2.43.0
|
2024-05-03 23:48:50 +02:00
|
|
|
|