diff -rauN qtbase-5.15.2/mkspecs/common/gcc-base.conf qtbase-5.15.2--no-ltcg-broken-patch/mkspecs/common/gcc-base.conf
--- qtbase-5.15.2/mkspecs/common/gcc-base.conf	2022-02-25 09:58:02.608162266 +0100
+++ qtbase-5.15.2--no-ltcg-broken-patch/mkspecs/common/gcc-base.conf	2022-02-25 10:06:31.605250485 +0100
@@ -54,8 +54,8 @@
 QMAKE_CFLAGS_HIDESYMS      += -fvisibility=hidden
 QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions
 QMAKE_CFLAGS_SPLIT_SECTIONS += -ffunction-sections -fdata-sections
-QMAKE_CFLAGS_LTCG           = -flto -fno-fat-lto-objects
-QMAKE_CFLAGS_LTCG_FATOBJECTS = -ffat-lto-objects
+QMAKE_CFLAGS_LTCG           =
+QMAKE_CFLAGS_LTCG_FATOBJECTS =
 QMAKE_CFLAGS_DISABLE_LTCG   = -fno-lto
 QMAKE_CFLAGS_SHSTK          = -mshstk
 
@@ -88,7 +88,7 @@
 QMAKE_LFLAGS_RELEASE   +=
 QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO +=
 QMAKE_LFLAGS_EXCEPTIONS_OFF +=
-QMAKE_LFLAGS_LTCG       = $$QMAKE_CFLAGS_LTCG -fuse-linker-plugin
+QMAKE_LFLAGS_LTCG       = $$QMAKE_CFLAGS_LTCG
 
 QMAKE_CFLAGS_C99       = -std=c99
 QMAKE_CFLAGS_C11       = -std=c11